From: Bruno Haible Date: Sat, 15 Jan 2022 23:13:38 +0000 (+0100) Subject: Don't pass unknown warning option to clang. X-Git-Tag: v1.0~2390 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1eae0f7ea3c220d054025f2c9211700665f9f4a0;p=gnulib.git Don't pass unknown warning option to clang. Reported by Assaf Gordon via Paul Eggert in . * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don't use -Wno-unsuffixed-float-constants with clang. --- diff --git a/ChangeLog b/ChangeLog index b568f3034a..c941ea151b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2022-01-15 Bruno Haible + + Don't pass unknown warning option to clang. + Reported by Assaf Gordon via Paul Eggert in + . + * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don't use + -Wno-unsuffixed-float-constants with clang. + 2022-01-15 Bruno Haible log tests: Avoid test failure with nvc 22.1. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 3730860f6d..dbc4079614 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 71 +# gnulib-common.m4 serial 72 dnl Copyright (C) 2007-2022 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -952,7 +952,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS], -Wno-sign-conversion -Wno-type-limits #endif - #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3) + #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4 -Wno-unsuffixed-float-constants #endif EOF