From 3675d8671d2a870b8a4d6cabb076785ec30324ca Mon Sep 17 00:00:00 2001 From: Irving Reid Date: Wed, 29 Feb 2012 10:20:42 -0500 Subject: [PATCH] Bug 731316: override warning about unsupported compiler warning flag on clang. r=respindola. --- build/autoconf/compiler-opts.m4 | 2 +- js/src/build/autoconf/compiler-opts.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4 index 0c2fd2a0b1a..081d8e4f5d8 100644 --- a/build/autoconf/compiler-opts.m4 +++ b/build/autoconf/compiler-opts.m4 @@ -7,7 +7,7 @@ if test "$CLANG_CXX"; then ## returned by C functions. This is possible because we use knowledge about the ABI ## to typedef it to a C type with the same layout when the headers are included ## from C. - _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-return-type-c-linkage" + _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage" fi ]) diff --git a/js/src/build/autoconf/compiler-opts.m4 b/js/src/build/autoconf/compiler-opts.m4 index 0c2fd2a0b1a..081d8e4f5d8 100644 --- a/js/src/build/autoconf/compiler-opts.m4 +++ b/js/src/build/autoconf/compiler-opts.m4 @@ -7,7 +7,7 @@ if test "$CLANG_CXX"; then ## returned by C functions. This is possible because we use knowledge about the ABI ## to typedef it to a C type with the same layout when the headers are included ## from C. - _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-return-type-c-linkage" + _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage" fi ])