wscript
changeset 3415 5dd595cb7eba
parent 3408 2cc40b3e4fa5
parent 3406 3efa652c47ef
child 3418 3ba0b240cff5
equal deleted inserted replaced
3414:48d69d8eac38 3415:5dd595cb7eba
   195 
   195 
   196     variant_env.append_value('CXXDEFINES', 'RUN_SELF_TESTS')
   196     variant_env.append_value('CXXDEFINES', 'RUN_SELF_TESTS')
   197     
   197     
   198     if (os.path.basename(conf.env['CXX']).startswith("g++")
   198     if (os.path.basename(conf.env['CXX']).startswith("g++")
   199         and 'CXXFLAGS' not in os.environ):
   199         and 'CXXFLAGS' not in os.environ):
   200         variant_env.append_value('CXXFLAGS', ['-Werror'])
   200         variant_env.append_value('CXXFLAGS', ['-Werror', '-Wno-error=deprecated-declarations'])
   201 
   201 
   202     if 'debug' in Params.g_options.debug_level.lower():
   202     if 'debug' in Params.g_options.debug_level.lower():
   203         variant_env.append_value('CXXDEFINES', 'NS3_ASSERT_ENABLE')
   203         variant_env.append_value('CXXDEFINES', 'NS3_ASSERT_ENABLE')
   204         variant_env.append_value('CXXDEFINES', 'NS3_LOG_ENABLE')
   204         variant_env.append_value('CXXDEFINES', 'NS3_LOG_ENABLE')
   205 
   205