]> Savannah Git Hosting - gnulib.git/commitdiff
Don't pass unknown warning option to clang.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 23:13:38 +0000 (00:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 23:13:38 +0000 (00:13 +0100)
Reported by Assaf Gordon via Paul Eggert in
<https://lists.gnu.org/archive/html/coreutils/2022-01/msg00018.html>.

* m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don't use
-Wno-unsuffixed-float-constants with clang.

ChangeLog
m4/gnulib-common.m4

index b568f3034aac2c752b1a7b1af7692df24c06fa6d..c941ea151b08525ed75bec7b8e2595182417f1e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-01-15  Bruno Haible  <bruno@clisp.org>
+
+       Don't pass unknown warning option to clang.
+       Reported by Assaf Gordon via Paul Eggert in
+       <https://lists.gnu.org/archive/html/coreutils/2022-01/msg00018.html>.
+       * m4/gnulib-common.m4 (gl_CC_GNULIB_WARNINGS): Don't use
+       -Wno-unsuffixed-float-constants with clang.
+
 2022-01-15  Bruno Haible  <bruno@clisp.org>
 
        log tests: Avoid test failure with nvc 22.1.
index 3730860f6dc1e9578a87225bf2b38abd98394755..dbc407961481e9e854eb24d971a700f9415091d4 100644 (file)
@@ -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