View | Details | Raw Unified | Return to bug 2181
Collapse All | Expand All

(-)a/wscript (+16 lines)
 Lines 30-39    Link Here 
30
examples_enabled = False
30
examples_enabled = False
31
tests_enabled    = False
31
tests_enabled    = False
32
32
33
# Compiler warning suppressions
34
33
# Bug 1868:  be conservative about -Wstrict-overflow for optimized builds
35
# Bug 1868:  be conservative about -Wstrict-overflow for optimized builds
34
# on older compilers; it can generate spurious warnings.  
36
# on older compilers; it can generate spurious warnings.  
35
cc_version_warn_strict_overflow = ('4', '8', '2')
37
cc_version_warn_strict_overflow = ('4', '8', '2')
36
38
39
# Bug 2181:  clang warnings about unused local typedefs and potentially
40
# evaluated expressions affecting clang version 7.0.0 (Xcode 7)
41
# Note:  Xcode no longer reports upstream clang version so some other
42
# heuristics will be needed in the future to distinguish Apple LLVM from
43
# upstream LLVM version numbers
44
clang_version_warn_unused_local_typedefs = ('7', '0', '0')
45
clang_version_warn_potentially_evaluated = ('7', '0', '0')
46
37
# Get the information out of the NS-3 configuration file.
47
# Get the information out of the NS-3 configuration file.
38
config_file_exists = False
48
config_file_exists = False
39
(config_file_exists, modules_enabled, examples_enabled, tests_enabled) = read_config_file()
49
(config_file_exists, modules_enabled, examples_enabled, tests_enabled) = read_config_file()
 Lines 373-378    Link Here 
373
        if Options.platform in ['linux']:
383
        if Options.platform in ['linux']:
374
            if conf.check_compilation_flag('-Wl,--soname=foo'):
384
            if conf.check_compilation_flag('-Wl,--soname=foo'):
375
                env['WL_SONAME_SUPPORTED'] = True
385
                env['WL_SONAME_SUPPORTED'] = True
386
    # bug 2181
387
    if conf.env['CXX_NAME'] in ['clang']:
388
        if conf.env['CC_VERSION'] >= clang_version_warn_unused_local_typedefs:
389
            env.append_value('CXXFLAGS', '-Wno-unused-local-typedefs')
390
        if conf.env['CC_VERSION'] >= clang_version_warn_potentially_evaluated: 
391
            env.append_value('CXXFLAGS', '-Wno-potentially-evaluated-expression')
376
392
377
    env['ENABLE_STATIC_NS3'] = False
393
    env['ENABLE_STATIC_NS3'] = False
378
    if Options.options.enable_static:
394
    if Options.options.enable_static:

Return to bug 2181