emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#71425: closed (test: Accommodate C23 compilers.)


From: GNU bug Tracking System
Subject: bug#71425: closed (test: Accommodate C23 compilers.)
Date: Sun, 16 Jun 2024 20:40:02 +0000

Your message dated Sun, 16 Jun 2024 14:39:05 -0600
with message-id <202406162039.45GKd5Vw667241@freefriends.org>
and subject line Re: [bug#71425] test: Accommodate C23 compilers.
has caused the debbugs.gnu.org bug report #71425,
regarding test: Accommodate C23 compilers.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
71425: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71425
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: test: Accommodate C23 compilers. Date: Fri, 07 Jun 2024 22:05:49 -0700 User-agent: Gnus/5.13 (Gnus v5.13)
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

Attachment: 0001-test-Accommodate-C23-compilers.patch
Description: Text Data


--- End Message ---
--- Begin Message --- 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.


--- End Message ---

reply via email to

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