diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-11-18 16:31:31 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-11-21 13:50:54 +0000 |
commit | 67d9daa65b9d555ced9fb1a9df90b1f8f1a4a257 (patch) | |
tree | fd996d97c128dc0d474cfd4d98e7833ddb7099bc /aclocal-fallback | |
parent | f711fbfae45d737142f30bdb1777d8c621d163de (diff) |
autotools: Fix extra-compiler-warnings for system headers
Use -isystem instead of -I for external headers with GCC/clang to squash
all the noise.
cmake already uses -isystem by default for supported platforms/compilers.
Change-Id: Ia6c9d1eb9b894fda6f48c531094d792e16fd39fc
Reviewed-on: https://code.wireshark.org/review/11947
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'aclocal-fallback')
-rw-r--r-- | aclocal-fallback/glib-2.0.m4 | 1 | ||||
-rw-r--r-- | aclocal-fallback/gtk-2.0.m4 | 1 | ||||
-rw-r--r-- | aclocal-fallback/gtk-3.0.m4 | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/aclocal-fallback/glib-2.0.m4 b/aclocal-fallback/glib-2.0.m4 index f6b58396b1..6d37a33a1b 100644 --- a/aclocal-fallback/glib-2.0.m4 +++ b/aclocal-fallback/glib-2.0.m4 @@ -67,6 +67,7 @@ AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0` GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` + AC_WIRESHARK_GCC_SYSTEM_INCLUDE(GLIB_CFLAGS) GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` diff --git a/aclocal-fallback/gtk-2.0.m4 b/aclocal-fallback/gtk-2.0.m4 index 3ad85f69e8..ca5df6c5d2 100644 --- a/aclocal-fallback/gtk-2.0.m4 +++ b/aclocal-fallback/gtk-2.0.m4 @@ -54,6 +54,7 @@ AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_module` + AC_WIRESHARK_GCC_SYSTEM_INCLUDE(GTK_CFLAGS) GTK_LIBS=`$PKG_CONFIG --libs $pkg_config_module` gtk_config_major_version=`$PKG_CONFIG --modversion $pkg_config_module | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` diff --git a/aclocal-fallback/gtk-3.0.m4 b/aclocal-fallback/gtk-3.0.m4 index 68c169f1df..968e5ee03e 100644 --- a/aclocal-fallback/gtk-3.0.m4 +++ b/aclocal-fallback/gtk-3.0.m4 @@ -57,6 +57,7 @@ AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run if test x"$no_gtk" = x ; then GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` + AC_WIRESHARK_GCC_SYSTEM_INCLUDE(GTK_CFLAGS) GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` |