Add compilation flag -Wno-error=deprecated-declarations, or else the NS_DEPRECATED macro becomes useless.
--- 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')