summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2015-11-15 18:41:42 +0100
committerMurray Cumming <murrayc@murrayc.com>2015-11-19 11:30:56 +0100
commit8fe12c7dad6d0a17a520fba6739b6355ae8d2409 (patch)
treef18f6892bda670f8578fdc12e95c8f9409586bf7 /macros
parentade428ac5b5f7ee53dce436b78db5fef8bb4fa8d (diff)
downloadmm-common-8fe12c7dad6d0a17a520fba6739b6355ae8d2409.tar.gz
mm-warnings.m4: Fix MM_ARG_ENABLE_WARNINGS for C++11
* macros/mm-warnings.m4: Don't compare a pointer with 0 in the test program. It does not work well with the -Wzero-as-null-pointer-constant option. Bug #757979.
Diffstat (limited to 'macros')
-rw-r--r--macros/mm-warnings.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/mm-warnings.m4 b/macros/mm-warnings.m4
index ca2645d..840a4fc 100644
--- a/macros/mm-warnings.m4
+++ b/macros/mm-warnings.m4
@@ -95,7 +95,7 @@ AS_IF([test "x$mm_warning_flags" != x],
# Keep in mind that the dummy source must be devoid of any
# problems that might cause diagnostics.
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
-int main(int argc, char** argv) { return (argv != 0) ? argc : 0; }
+int main(int argc, char** argv) { return !argv ? 0 : argc; }
]])])
for mm_flag in $mm_warning_flags
do