From 7c94304d02dd48b4edea72d0ee21c0ff47356430 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Wed, 12 Feb 2014 10:55:25 -0800 Subject: [PATCH] Bug 928808: Suppress clang warnings (in newer clang versions) about inline 'new' and 'delete'. r=glandium --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.in b/configure.in index 91b1493b3d72..4aa5d915d53f 100644 --- a/configure.in +++ b/configure.in @@ -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