[webkit-changes] [WebKit/WebKit] f5972c: [Win] MemoryFootprintWin.cpp: Stop using deprecate...

Fujii Hironori noreply at github.com
Tue Sep 24 01:05:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f5972c2839d0aef5ea2ed259c7888087c05d1156
      https://github.com/WebKit/WebKit/commit/f5972c2839d0aef5ea2ed259c7888087c05d1156
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2024-09-24 (Tue, 24 Sep 2024)

  Changed paths:
    M Source/WTF/wtf/win/MemoryFootprintWin.cpp

  Log Message:
  -----------
  [Win] MemoryFootprintWin.cpp: Stop using deprecated 'std::aligned_storage<>'
https://bugs.webkit.org/show_bug.cgi?id=280253

Reviewed by Ross Kirsling.

Without -Wno-deprecated-declarations, Windows port couldn't compile
due to the following warning:.

> ...\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;
>       |          ^

* Source/WTF/wtf/win/MemoryFootprintWin.cpp:
(WTF::memoryFootprint):

Canonical link: https://commits.webkit.org/284146@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list