diff --git a/wscript b/wscript index b87227910e..79a5a9a92c 100644 --- a/wscript +++ b/wscript @@ -385,7 +385,9 @@ def set_compiler_flags (conf,opt): ('-Wall', '-Wpointer-arith', '-Wcast-qual', '-Wcast-align', '-Wno-unused-parameter')) c_flags.extend(('-Wstrict-prototypes', '-Wmissing-prototypes')) - cxx_flags.extend(('-Woverloaded-virtual', '-Wno-unused-local-typedefs')) + cxx_flags.append('-Woverloaded-virtual') + if (not is_clang and not platform == "darwin"): + cxx_flags.extend('-Wno-unused-local-typedefs') # # more boilerplate