mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
libcxx: Disable -Wshadow for locale.cpp
This might be specific to gcc or Linux
as I didn't see it with clang + macOS.
libcxx/src/locale.cpp: In member function 'void std::__1::locale::__install_ctor(const std::__1::locale&, std::__1::locale::facet*, long int)':
libcxx/src/locale.cpp:576:62: warning: declaration of 'id' shadows a member of 'std::__1::locale' [-Wshadow]
576 | locale::__install_ctor(const locale& other, facet* f, long id)
| ^
In file included from /Users/yamamoto/git/nuttx/nuttx/include/libcxx/locale:181,
from libcxx/src/locale.cpp:16:
/Users/yamamoto/git/nuttx/nuttx/include/libcxx/__locale:203:32: note: shadowed declaration is here
203 | class _LIBCPP_TYPE_VIS locale::id
| ^~
This commit is contained in:
committed by
Xiang Xiao
parent
884882501c
commit
6481b774e4
@@ -56,6 +56,7 @@ CXXFLAGS += ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY}
|
||||
# 29 | ptrdiff_t& __expected;
|
||||
# | ^~~~~~~~~~
|
||||
libcxx/src/barrier.cpp_CXXFLAGS += -Wno-shadow
|
||||
libcxx/src/locale.cpp_CXXFLAGS += -Wno-shadow
|
||||
|
||||
CPPSRCS += $(notdir $(wildcard libcxx/src/*.cpp))
|
||||
CPPSRCS += $(notdir $(wildcard libcxx/src/experimental/*.cpp))
|
||||
|
||||
Reference in New Issue
Block a user