Skip to content

Commit

Permalink
Merge pull request #249 from heitbaum/gcc15
Browse files Browse the repository at this point in the history
Fix declarations to allow build with gcc 15
  • Loading branch information
hyperrealm authored Dec 8, 2024
2 parents e4c5d2c + 690342b commit e6b9fd1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/grammar.y
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
#include "wincompat.h"

/* These declarations are provided to suppress compiler warnings. */
extern int libconfig_yylex();
extern int libconfig_yyget_lineno();
extern int libconfig_yyget_lineno(void *);

#define YYMALLOC libconfig_malloc

Expand Down Expand Up @@ -82,6 +81,11 @@ void libconfig_yyerror(void *scanner, struct parse_context *ctx,
char *sval;
}

%{
/* These declarations are provided to suppress compiler warnings. */
extern int libconfig_yylex(YYSTYPE *, void *);
%}

%token <ival> TOK_BOOLEAN TOK_INTEGER TOK_HEX
%token <llval> TOK_INTEGER64 TOK_HEX64
%token <fval> TOK_FLOAT
Expand Down

0 comments on commit e6b9fd1

Please sign in to comment.