GNU bug report logs - #71425
test: Accommodate C23 compilers.

Previous Next

Package: automake-patches;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Sat, 8 Jun 2024 05:07:02 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Collin Funk <collin.funk1 <at> gmail.com>
Subject: bug#71425: closed (Re: [bug#71425] test: Accommodate C23 compilers.)
Date: Sun, 16 Jun 2024 20:40:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#71425: test: Accommodate C23 compilers.

which was filed against the automake-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 71425 <at> debbugs.gnu.org.

-- 
71425: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71425
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Karl Berry <karl <at> freefriends.org>
To: collin.funk1 <at> gmail.com
Cc: 71425 <at> debbugs.gnu.org
Subject: Re: [bug#71425] test: Accommodate C23 compilers.
Date: Sun, 16 Jun 2024 14:39:05 -0600
Hi Collin,

    In the yacc test I see warnings like this:

    main.c:4:10: error: implicit declaration of function 'yyparse' [-Wimplicit-function-declaration]
        4 |   return yyparse ();
          |          ^~~~~~~

    and some for yylex which is declared, but with an empty parameter list
    instead of void.

    I assume this is because GCC becoming more strict to conform with C23
    requirements. I did these tests with GCC 14.1.

    I have attached a patch fixing these tests on my system.

Thanks for the report and patch. I applied it. I fear new
incompatibility errors with other systems in other cases, since these
yyparse/yylex declarations have been a constant pain ever since they
started getting "improved", but I guess we'll find out. --thanks, karl.

[Message part 3 (message/rfc822, inline)]
From: Collin Funk <collin.funk1 <at> gmail.com>
To: automake-patches <at> gnu.org
Subject: test: Accommodate C23 compilers.
Date: Fri, 07 Jun 2024 22:05:49 -0700
[Message part 4 (text/plain, inline)]
In the yacc test I see warnings like this:

main.c:4:10: error: implicit declaration of function ‘yyparse’ [-Wimplicit-function-declaration]
    4 |   return yyparse ();
      |          ^~~~~~~

and some for yylex which is declared, but with an empty parameter list
instead of void.

I assume this is because GCC becoming more strict to conform with C23
requirements. I did these tests with GCC 14.1.

I have attached a patch fixing these tests on my system.

Collin

[0001-test-Accommodate-C23-compilers.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.