[Webkit-unassigned] [Bug 280253] New: [Win] MemoryFootprintWin.cpp: error: 'aligned_storage<144>' is deprecated: warning STL4034: std::aligned_storage and std::aligned_storage_t are deprecated in C++23.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 23 22:14:53 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=280253

            Bug ID: 280253
           Summary: [Win] MemoryFootprintWin.cpp: error:
                    'aligned_storage<144>' is deprecated: warning STL4034:
                    std::aligned_storage and std::aligned_storage_t are
                    deprecated in C++23.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: DoNotImportToRadar
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com

Without -Wno-deprecated-declarations, Windows port can't compile.

C:\webkit\wc\Source\WTF\wtf\win\MemoryFootprintWin.cpp(66,10): error: 'aligned_storage<144>' is deprecated: warning STL4034: std::aligned_storage and std::aligned_storage_t are deprecated in C++23. Prefer alignas(T) std::byte t_buff[sizeof(T)]. You can define _SILENCE_CXX23_ALIGNED_STORAGE_DEPRECATION_WARNING or _SILENCE_ALL_CXX23_DEPRECATION_WARNINGS to suppress this warning. [-Werror,-Wdeprecated-declarations]
   66 |     std::aligned_storage<sizeOfBufferOnStack, alignof(PSAPI_WORKING_SET_INFORMATION)>::type bufferOnStack;
      |          ^

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240924/2e85e4d6/attachment-0001.htm>


More information about the webkit-unassigned mailing list