Skip to content

Commit 5f29ed1

Browse files
ColinFinckldionne
authored andcommitted
[libc++] Fix warnings when compiling libc++ for Windows with clang-cl /W4
Differential Revision: https://reviews.llvm.org/D96408
1 parent 3ed9e9e commit 5f29ed1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libcxx/src/atomic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static void __libcpp_contention_notify(__cxx_atomic_contention_t volatile* __con
147147
// We only call 'wake' if we consumed a contention bit here.
148148
__libcpp_platform_wake_by_address(__platform_state, __notify_one);
149149
}
150-
static __cxx_contention_t __libcpp_contention_monitor_for_wait(__cxx_atomic_contention_t volatile* __contention_state,
150+
static __cxx_contention_t __libcpp_contention_monitor_for_wait(__cxx_atomic_contention_t volatile* /*__contention_state*/,
151151
__cxx_atomic_contention_t const volatile* __platform_state)
152152
{
153153
// We will monitor this value.

libcxx/src/support/win32/locale_win32.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ int __libcpp_vasprintf(char **sptr, const char *__restrict fmt, va_list ap);
1717

1818
using std::__libcpp_locale_guard;
1919

20-
// FIXME: base currently unused. Needs manual work to construct the new locale
21-
locale_t newlocale( int mask, const char * locale, locale_t /*base*/ )
20+
// FIXME: base and mask currently unused. Needs manual work to construct the new locale
21+
locale_t newlocale(int /*mask*/, const char * locale, locale_t /*base*/)
2222
{
2323
return {_create_locale( LC_ALL, locale ), locale};
2424
}

0 commit comments

Comments
 (0)