|
|
34 |
|
34 |
|
35 |
FINAL_LIBRARY = 'xul-gtest' |
35 |
FINAL_LIBRARY = 'xul-gtest' |
36 |
|
36 |
|
37 |
include('../../warnings.mozbuild') |
37 |
include('../../warnings.mozbuild') |
38 |
|
38 |
|
39 |
# These warnings are disabled in order to minimize the amount of boilerplate |
39 |
# These warnings are disabled in order to minimize the amount of boilerplate |
40 |
# required to implement tests, and/or because they originate in the GTest |
40 |
# required to implement tests, and/or because they originate in the GTest |
41 |
# framework in a way we cannot otherwise work around. |
41 |
# framework in a way we cannot otherwise work around. |
42 |
if CONFIG['CLANG_CXX']: |
42 |
if CONFIG['GNU_CXX']: |
43 |
CXXFLAGS += [ |
43 |
CXXFLAGS += ['-Wno-error=shadow'] |
44 |
'-Wno-exit-time-destructors', |
44 |
if CONFIG['CLANG_CXX']: |
45 |
'-Wno-global-constructors', |
45 |
CXXFLAGS += [ |
46 |
'-Wno-old-style-cast', |
46 |
'-Wno-exit-time-destructors', |
47 |
'-Wno-used-but-marked-unused', |
47 |
'-Wno-global-constructors', |
48 |
] |
48 |
'-Wno-old-style-cast', |
|
|
49 |
'-Wno-used-but-marked-unused', |
50 |
] |
49 |
elif CONFIG['_MSC_VER']: |
51 |
elif CONFIG['_MSC_VER']: |
50 |
CXXFLAGS += [ |
52 |
CXXFLAGS += [ |
51 |
'-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::... |
53 |
'-wd4350', # behavior change: 'std::_Wrap_alloc<std::allocator<_Ty>>::... |
52 |
'-wd4275', # non dll-interface class used as base for dll-interface class |
54 |
'-wd4275', # non dll-interface class used as base for dll-interface class |
53 |
'-wd4548', # Expression before comma has no effect |
55 |
'-wd4548', # Expression before comma has no effect |
54 |
'-wd4625', # copy constructor could not be generated. |
56 |
'-wd4625', # copy constructor could not be generated. |
55 |
'-wd4626', # assugment operator could not be generated. |
57 |
'-wd4626', # assugment operator could not be generated. |
56 |
'-wd4640', # construction of local static object is not thread safe. |
58 |
'-wd4640', # construction of local static object is not thread safe. |