diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2015-11-15 18:41:42 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-11-19 11:30:56 +0100 |
commit | 8fe12c7dad6d0a17a520fba6739b6355ae8d2409 (patch) | |
tree | f18f6892bda670f8578fdc12e95c8f9409586bf7 /macros | |
parent | ade428ac5b5f7ee53dce436b78db5fef8bb4fa8d (diff) | |
download | mm-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.m4 | 2 |
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 |