bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 3.2.90 released [beta]


From: Akim Demaille
Subject: Re: Bison 3.2.90 released [beta]
Date: Wed, 16 Jan 2019 06:53:09 +0100

> Le 15 janv. 2019 à 20:36, Akim Demaille <address@hidden> a écrit :
> 
>> Le 15 janv. 2019 à 19:44, Derek Clegg <address@hidden> a écrit :
>> 
>> It looks okay, however, based on a brief inspection. One thing:
>> 
>>> if test "$enable_gcc_warnings" = yes; then
>>> warn_common='-Wall -Wextra -Wno-sign-compare -Wcast-align
>>>   -fparse-all-comments -Wdocumentation
>>> -    -Wformat -Wnull-dereference -Wpointer-arith -Wshadow -Wwrite-strings'
>>> +    -Wformat -Wnull-dereference -Wpointer-arith -Wshadow
>>> +    -Wundefined-func-template -Wwrite-strings'
>>> warn_c='-Wbad-function-cast -Wstrict-prototypes'
>>> warn_cxx='-Wextra-semi -Wnoexcept'
>>> # Warnings for the test suite only.
>> 
>> I would expect “-Wundefined-func-template” to appear in “warn_cxx”, not 
>> “warn_common”. But I may not fully understand what’s going on here.
> 
> Of course you are right.  configure.ac correctly sees that it does not make 
> sense for the C compiler, but it should go in warn_cxx.  Thanks!

commit a634aad9e639db7ea204473f2edafc294fb49ca2
Author: Akim Demaille <address@hidden>
Date:   Tue Jan 15 20:42:18 2019 +0100

    configure: don't try to run C++ warnings on C
    
    Reported by Derek Clegg.
    https://lists.gnu.org/archive/html/bison-patches/2019-01/msg00066.html
    
    * configure.ac: here.

diff --git a/configure.ac b/configure.ac
index 23aeb86d..a3a471af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -98,9 +98,9 @@ if test "$enable_gcc_warnings" = yes; then
     -fparse-all-comments -Wdocumentation
     -Wformat -Wimplicit-fallthrough -Wnull-dereference
     -Wpointer-arith -Wshadow
-    -Wundefined-func-template -Wwrite-strings'
+    -Wwrite-strings'
   warn_c='-Wbad-function-cast -Wstrict-prototypes'
-  warn_cxx='-Wextra-semi -Wnoexcept'
+  warn_cxx='-Wextra-semi -Wnoexcept -Wundefined-func-template'
   # Warnings for the test suite only.
   #
   # -fno-color-diagnostics: Clang's use of colors in the error




reply via email to

[Prev in Thread] Current Thread [Next in Thread]