From 2bdf9e447f7341febc06bf6ad9c19bb4489fb885 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Nov 2014 04:24:58 +0100 Subject: [PATCH] OSX gcc does not support local-typedef warning --- wscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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