Bug 1155393 - Port the -Wno-inline-new-delete option from configure.in to the JS configure script; r=dholbert

This commit is contained in:
Ehsan Akhgari 2015-04-17 08:53:35 -04:00
Родитель ce7dd8ac13
Коммит e847c415b3
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1243,9 +1243,12 @@ if test "$GNU_CC"; then
# Turn off the following warnings that -Wall turns on: # Turn off the following warnings that -Wall turns on:
# -Wno-unused - lots of violations in third-party code # -Wno-unused - lots of violations in third-party code
# -Wno-inline-new-delete - we inline 'new' and 'delete' in mozalloc
# #
_WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wno-unused" _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wno-unused"
MOZ_CXX_SUPPORTS_WARNING(-Wno-, inline-new-delete, ac_cxx_has_wno_inline_new_delete)
if test -z "$INTEL_CC" -a -z "$CLANG_CC"; then if test -z "$INTEL_CC" -a -z "$CLANG_CC"; then
# Don't use -Wcast-align with ICC or clang # Don't use -Wcast-align with ICC or clang
case "$CPU_ARCH" in case "$CPU_ARCH" in
@ -1789,6 +1792,10 @@ ia64*-hpux*)
# the same thing as C4244, we disable C4267, too. # the same thing as C4244, we disable C4267, too.
CFLAGS="$CFLAGS -wd4244 -wd4267" CFLAGS="$CFLAGS -wd4244 -wd4267"
CXXFLAGS="$CXXFLAGS -wd4244 -wd4267 -wd4251" CXXFLAGS="$CXXFLAGS -wd4244 -wd4267 -wd4251"
if test -n "$CLANG_CL"; then
# Suppress the clang-cl warning for the inline 'new' and 'delete' in mozalloc
CXXFLAGS="$CXXFLAGS -Wno-inline-new-delete"
fi
# make 'foo == bar;' error out # make 'foo == bar;' error out
CFLAGS="$CFLAGS -we4553" CFLAGS="$CFLAGS -we4553"
CXXFLAGS="$CXXFLAGS -we4553" CXXFLAGS="$CXXFLAGS -we4553"