Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).

Paul Eggert <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 8/5/20 7:28 PM, Vincent Lefevre wrote:
> Then "configure" should provide a way to use -Werror

I added that to the Autoconf TODO list; see attached. Unfortunately it's not 
something that would be trivial to do. In the meantime, I suggest not passing 
-Werror to 'configure'. (Or for this particular example, you can wait until C2x 
is supported. :-)
0001-TODO-Add-Werror-support.patch (text/x-patch, 952 B)
From ef399ebb88d65eb674c9e9748ad223997d1e1ce2 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Thu, 6 Aug 2020 12:28:24 -0700
Subject: [PATCH] * TODO: Add -Werror support.

---
 TODO | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/TODO b/TODO
index 37b2e946..62619219 100644
--- a/TODO
+++ b/TODO
@@ -83,6 +83,13 @@ Harlan:
 ** Languages
 Integrate other Fortrans etc.
 
+** Picky compilers, e.g., gcc -Werror
+Many Autoconf-generated tests do the wrong thing if someone configures
+with CC='gcc -Werror' or with similar options.  It would be nice if
+these tests worked better with picky compilers.  This will require
+significant reworking in some cases, e.g., AC_CHECK_FUNCS will need
+to know the headers declaring the functions.
+
 ** AC_CHECK_FUNCS and AC_TRY_LINK_FUNC
 I have still not understood what's the difference  between the two
 which requires to have two different sources: AC_LANG_CALL and
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.