[libcxx-commits] [PATCH] D96408: Fix warnings when compiling libcxx for Windows with clang-cl /W4
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 8 08:52:09 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5f29ed165481: [libc++] Fix warnings when compiling libc++ for Windows with clang-cl /W4 (authored by ColinFinck, committed by ldionne).
Herald added a project: All.
Changed prior to commit:
https://reviews.llvm.org/D96408?vs=380602&id=556271#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96408/new/
https://reviews.llvm.org/D96408
Files:
libcxx/src/atomic.cpp
libcxx/src/support/win32/locale_win32.cpp
Index: libcxx/src/support/win32/locale_win32.cpp
===================================================================
--- libcxx/src/support/win32/locale_win32.cpp
+++ libcxx/src/support/win32/locale_win32.cpp
@@ -17,8 +17,8 @@
using std::__libcpp_locale_guard;
-// FIXME: base currently unused. Needs manual work to construct the new locale
-locale_t newlocale( int mask, const char * locale, locale_t /*base*/ )
+// FIXME: base and mask currently unused. Needs manual work to construct the new locale
+locale_t newlocale(int /*mask*/, const char * locale, locale_t /*base*/)
{
return {_create_locale( LC_ALL, locale ), locale};
}
Index: libcxx/src/atomic.cpp
===================================================================
--- libcxx/src/atomic.cpp
+++ libcxx/src/atomic.cpp
@@ -147,7 +147,7 @@
// We only call 'wake' if we consumed a contention bit here.
__libcpp_platform_wake_by_address(__platform_state, __notify_one);
}
-static __cxx_contention_t __libcpp_contention_monitor_for_wait(__cxx_atomic_contention_t volatile* __contention_state,
+static __cxx_contention_t __libcpp_contention_monitor_for_wait(__cxx_atomic_contention_t volatile* /*__contention_state*/,
__cxx_atomic_contention_t const volatile* __platform_state)
{
// We will monitor this value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96408.556271.patch
Type: text/x-patch
Size: 1368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230908/a8f8ce12/attachment.bin>
More information about the libcxx-commits
mailing list