зеркало из https://github.com/mozilla/gecko-dev.git
Bug 928808: Suppress clang warnings (in newer clang versions) about inline 'new' and 'delete'. r=glandium
This commit is contained in:
Родитель
9858132d7b
Коммит
7c94304d02
|
@ -1455,8 +1455,12 @@ if test "$GNU_CXX"; then
|
|||
|
||||
# Turn off the following warnings that -Wall turns on:
|
||||
# -Wno-invalid-offsetof - we use offsetof on non-POD types frequently
|
||||
# -Wno-inline-new-delete - we inline 'new' and 'delete' in mozalloc
|
||||
# for performance reasons, and because GCC and clang accept it (though
|
||||
# clang warns about it).
|
||||
#
|
||||
MOZ_CXX_SUPPORTS_WARNING(-Wno-, invalid-offsetof, ac_cxx_has_wno_invalid_offsetof)
|
||||
MOZ_CXX_SUPPORTS_WARNING(-Wno-, inline-new-delete, ac_cxx_has_wno_inline_new_delete)
|
||||
|
||||
if test -z "$INTEL_CXX" -a -z "$CLANG_CXX"; then
|
||||
# Don't use -Wcast-align with ICC or clang
|
||||
|
|
Загрузка…
Ссылка в новой задаче