Hi,
Yes, warnings are not errors. But, it always better to have the code that doesn't have any warnings or errors, since it may cause some problem in runtime. Also, you are relying on the results from the simulation produced by your code, it is always better to have code that doesn't have even minor mistakes. Anyway if you are confident that your code produces reliable results even with compiler warnings, you can do the following to stop the compiler to treat the warnings as error,
Open the file waf-tool/cflags.py the you can see the following code,
class GccTraits(CompilerTraits):
def __init__(self):
super(GccTraits, self).__init__()
# cumulative list of warnings per level
self.warnings_flags = [['-Wall'], ['-Werror'], ['-Wextra']]
Remove the '-Werror' in the last line and save.
Then you have to configure and build the NS3 as you have done initially.
Regards,
Shoban.