diff options
| author | Michael Biebl <biebl@debian.org> | 2020-08-19 10:14:39 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2020-08-19 10:14:39 +0200 |
| commit | c61fd724fffbf1225fdd233a8e450d9a1ddcc849 (patch) | |
| tree | 43e0feb9d3cf8842022ed94b164324c0603855fc /m4 | |
| parent | f86436e83639986f20fb44663edcccf36c3c150c (diff) | |
| parent | e7b44ef4c80907346ec7492a09c45277459924fc (diff) | |
Update upstream source from tag 'upstream/1.26.2'
Update to upstream version '1.26.2' with Debian dir ba5e61f5f737f4e42f743638f9a83bd5cd708a3c
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/compiler_options.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/compiler_options.m4 b/m4/compiler_options.m4 index 9adc1f14..d390a90c 100644 --- a/m4/compiler_options.m4 +++ b/m4/compiler_options.m4 @@ -60,11 +60,20 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then CFLAGS_MORE_WARNINGS="-Wall" + if test "x$enable_lto" = xyes; then + dnl With LTO and optimizations enabled, gcc 10.2.1-1.fc32 is really + dnl adamant to warn about correct uses of strncpy. Disable that warning. + _CFLAGS_MORE_WARNINGS_DISABLE_LTO="-Wno-stringop-overflow" + else + _CFLAGS_MORE_WARNINGS_DISABLE_LTO= + fi + if test "x$set_more_warnings" = xerror; then CFLAGS_MORE_WARNINGS="$CFLAGS_MORE_WARNINGS -Werror" fi for option in \ + $_CFLAGS_MORE_WARNINGS_DISABLE_LTO \ -Wextra \ -Wdeclaration-after-statement \ -Wfloat-equal \ |