Kaydet (Commit) 80244bff authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Wshadow appears to work now on Mac OS X

...at least in my build against the 10.9 SDK.  (Though Clang apparently emits
far fewer shadowing warnings than other compilers, anyway.)

Change-Id: I1f1e2ef693c3bd0846d85a3f72f32a8610f46194
üst 3a298c37
...@@ -44,18 +44,18 @@ gb_CFLAGS := \ ...@@ -44,18 +44,18 @@ gb_CFLAGS := \
$(gb_CFLAGS_COMMON) \ $(gb_CFLAGS_COMMON) \
-fPIC \ -fPIC \
-fno-strict-aliasing \ -fno-strict-aliasing \
#-Wshadow \ break in compiler headers already -Wshadow
gb_CXXFLAGS := \ gb_CXXFLAGS := \
$(gb_CXXFLAGS_COMMON) \ $(gb_CXXFLAGS_COMMON) \
-fPIC \ -fPIC \
-Woverloaded-virtual \ -Woverloaded-virtual \
-Wshadow \
-Wno-ctor-dtor-privacy \ -Wno-ctor-dtor-privacy \
-fno-strict-aliasing \ -fno-strict-aliasing \
-fsigned-char \ -fsigned-char \
$(CXXFLAGS_CXX11) $(CXXFLAGS_CXX11)
#-Wshadow \ break in compiler headers already
#-fsigned-char \ might be removed? #-fsigned-char \ might be removed?
# these are to get g++ to switch to Objective-C++ mode # these are to get g++ to switch to Objective-C++ mode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment