author Christoph Kerschbaumer <>
Thu, 14 Jan 2016 13:21:31 -0800
changeset 280094 febf0e69c996e1a6678e6d7877e6ef07e0011b2c
parent 275353 d274136019db1c59cb3d4d8464b3ac4e6ac4ecbc
child 356743 8659404d72eaec75b1b8fa913a8702f968d7569a
permissions -rw-r--r--
Bug 1224694 - Unify and clean up initialization of CSP (r=sicking)


    '-Wno-reserved-id-macro', # NSPR and NSS use reserved IDs in their include guards.
    '-Wno-shadow', # XXX: Clang's rules are too strict for constructors.
    '-Wno-weak-vtables', # We rely on the linker to merge the duplicate vtables.
elif CONFIG['_MSC_VER']:
    '-sdl', # Enable additional security checks based on Microsoft's SDL.


    '-wd4464', # relative include path contains '..'
    '-wd4514', # 'function': unreferenced inline function has been removed
    '-wd4668', # warning C4668: 'X' is not defined as a preprocessor macro,
               # replacing with '0' for '#if/#elif'.
    '-wd4710', # 'function': function not inlined
    '-wd4711', # function 'function' selected for inline expansion
    '-wd4800', # forcing value to bool 'true' or 'false'
    '-wd4820', # 'bytes' bytes padding added after construct 'member_name'

    # XXX: We cannot use /Za (Disable Microsoft Extensions) because windows.h
    # won't copmile with it.
    '-Zc:forScope', # Standard C++ rules for variable scope in for loops.
    '-Zc:inline', # Standard C++ rules requiring definition inline functions.
    '-Zc:rvalueCast', # Standard C++ rules for result of cast being an rvalue.
    '-Zc:strictStrings', # Standard C++ rule that string literals are const.