summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-24 04:24:58 +0100
committerRobin Gareus <robin@gareus.org>2014-11-24 04:24:58 +0100
commit2bdf9e447f7341febc06bf6ad9c19bb4489fb885 (patch)
treecc4915511b4cdcf4e42ab0d2806a2fe68face714 /wscript
parent3a7652200d5383c1be4e83cd59e9fb5be1521a24 (diff)
OSX gcc does not support local-typedef warning
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 3 insertions, 1 deletions
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