Added prototype of yylex() function #25

Merged
MicheleC merged 1 commits from feat/gcc-14 into master 7 months ago
Ghost commented 7 months ago

Required for building with the new gcc-14

When building a new compiler, it gives an error:

parser.c:2001:16: error: implicit declaration of function ‘yylex’ [-Wimplicit-function-declaration]
 2001 |       yychar = yylex ();

On earlier versions of compilers, it should produce a warning.
This fix resolves this issue.

Required for building with the new gcc-14 When building a new compiler, it gives an error: ``` parser.c:2001:16: error: implicit declaration of function ‘yylex’ [-Wimplicit-function-declaration] 2001 | yychar = yylex (); ``` On earlier versions of compilers, it should produce a warning. This fix resolves this issue.
Ghost added 1 commit 7 months ago
0d7d689a31
Added prototype of yylex() function
Required for building with the new gcc-14

Signed-off-by: ormorph <roma251078@mail.ru>
MicheleC requested changes 7 months ago
MicheleC left a comment
Owner

Minor adjustment required

Minor adjustment required
@ -31,3 +31,3 @@
#define inMainModule() (currentSpec->module == currentModule || currentModule->container != NULL)
int yylex();
Owner

Suggest we move this up a few lines and put it together with the declaration of yyerror.

Suggest we move this up a few lines and put it together with the declaration of `yyerror`.
Ghost force-pushed feat/gcc-14 from 0d7d689a31 to 025551702b 7 months ago
Ghost force-pushed feat/gcc-14 from 025551702b to dc7ba7a6d7 7 months ago
Ghost commented 7 months ago
Poster

Changed.

Changed.
MicheleC approved these changes 7 months ago
MicheleC left a comment
Owner

Looks good

Looks good
MicheleC merged commit dc7ba7a6d7 into master 7 months ago
MicheleC deleted branch feat/gcc-14 7 months ago
MicheleC added this to the R14.1.3 release milestone 7 months ago

Reviewers

MicheleC approved these changes 7 months ago
The pull request has been merged as dc7ba7a6d7.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TDE/sip4-tqt#25
Loading…
There is no content yet.