diff options
author | Reini Urban <rurban@cpan.org> | 2017-10-05 14:07:40 +0200 |
---|---|---|
committer | Reini Urban <rurban@cpan.org> | 2017-10-05 14:08:00 +0200 |
commit | a9ab07454adc24bf2eb73f1a8475ef2461c6803f (patch) | |
tree | bc9b819a15957d6ea12db60ccc651f06959ca65f /m4/ax_compiler_flags_cflags.m4 | |
parent | 62b9c39be4705cfc922e63ad21e957fb7250803c (diff) | |
download | autoconf-archive-a9ab07454adc24bf2eb73f1a8475ef2461c6803f.tar.gz |
AX_COMPILER_FLAGS: add new gcc flags
-Wduplicated-cond since gcc 6
-Wduplicated-branches since gcc 7
-Wlogical-op since gcc 4.3
-Wrestrict since gcc 7
-Wnull-dereference since gcc 6
-Wjump-misses-init since gcc 4.5
-Wdouble-promotion since gcc 4.6
See also https://kristerw.blogspot.de/2017/09/useful-gcc-warning-options-not-enabled.html
Diffstat (limited to 'm4/ax_compiler_flags_cflags.m4')
-rw-r--r-- | m4/ax_compiler_flags_cflags.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/m4/ax_compiler_flags_cflags.m4 b/m4/ax_compiler_flags_cflags.m4 index aeb16e3..9767e6a 100644 --- a/m4/ax_compiler_flags_cflags.m4 +++ b/m4/ax_compiler_flags_cflags.m4 @@ -19,13 +19,14 @@ # LICENSE # # Copyright (c) 2014, 2015 Philip Withnall <philip@tecnocode.co.uk> +# Copyright (c) 2017 Reini Urban <rurban@cpan.org> # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 14 +#serial 15 AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ AC_REQUIRE([AC_PROG_SED]) @@ -100,6 +101,13 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[ -Wreturn-type dnl -Wswitch-enum dnl -Wswitch-default dnl + -Wduplicated-cond dnl + -Wduplicated-branches dnl + -Wlogical-op dnl + -Wrestrict dnl + -Wnull-dereference dnl + -Wjump-misses-init dnl + -Wdouble-promotion dnl $4 dnl $5 dnl $6 dnl |