diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-09-24 22:22:49 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-09-24 22:22:49 +0200 |
commit | 8d5672320b92b05f1fbc15c1a6813ef466e1f8fc (patch) | |
tree | f53fde0878440f69f04f170e2565ecbc538a9b8f /m4 | |
parent | aa3d87ec696b05698edfc56b5381c7500ccd220b (diff) |
New upstream version 0.10.2
Diffstat (limited to 'm4')
-rw-r--r-- | m4/virt-compile-warnings.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4 index 26f613459..d1173eb07 100644 --- a/m4/virt-compile-warnings.m4 +++ b/m4/virt-compile-warnings.m4 @@ -57,6 +57,8 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ dontwarn="$dontwarn -Wformat-nonliteral" # Gnulib's stat-time.h violates this dontwarn="$dontwarn -Waggregate-return" + # gcc 4.4.6 complains this is C++ only; gcc 4.7.0 implies this from -Wall + dontwarn="$dontwarn -Wenum-compare" # Gnulib uses '#pragma GCC diagnostic push' to silence some # warnings, but older gcc doesn't support this. @@ -110,8 +112,14 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[ gl_WARN_ADD([-Wjump-misses-init]) # GNULIB turns on -Wformat=2 which implies -Wformat-nonliteral, - # so we need to manually re-exclude it. + # so we need to manually re-exclude it. Also, older gcc 4.2 + # added an implied ATTRIBUTE_NONNULL on any parameter marked + # ATTRIBUTE_FMT_PRINT, which causes -Wformat failure on our + # intentional use of virReportError(code, NULL). gl_WARN_ADD([-Wno-format-nonliteral]) + if test $lv_cv_gcc_pragma_push_works = no; then + gl_WARN_ADD([-Wno-format]) + fi # This should be < 256 really. Currently we're down to 4096, # but using 1024 bytes sized buffers (mostly for virStrerror) |