Add compilation flag -Wno-error=deprecated-declarations, or else the NS_DEPRECATED macro becomes useless.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Fri, 11 Jul 2008 11:36:59 +0100
changeset 3406 3efa652c47ef
parent 3405 7e943b537495
child 3407 038f13c8741c
child 3415 5dd595cb7eba
Add compilation flag -Wno-error=deprecated-declarations, or else the NS_DEPRECATED macro becomes useless.
wscript
--- a/wscript	Thu Jul 10 21:32:33 2008 -0400
+++ b/wscript	Fri Jul 11 11:36:59 2008 +0100
@@ -194,7 +194,7 @@
     
     if (os.path.basename(conf.env['CXX']).startswith("g++")
         and 'CXXFLAGS' not in os.environ):
-        variant_env.append_value('CXXFLAGS', ['-Werror'])
+        variant_env.append_value('CXXFLAGS', ['-Werror', '-Wno-error=deprecated-declarations'])
 
     if 'debug' in Params.g_options.debug_level.lower():
         variant_env.append_value('CXXDEFINES', 'NS3_ASSERT_ENABLE')