diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2014-07-25 16:58:17 +0200 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2014-11-23 20:29:49 -0500 |
commit | 71e207c1ac1bb664326a5539d93a022bf0deade9 (patch) | |
tree | 015a573a5b204a00b5a7ef177d1b92e4cd8ba515 /src/flex.skl | |
parent | c0303615a661ee0fcb399b888efb2a653e6b66ed (diff) |
Fix a few "unused parameter" warnings
Diffstat (limited to 'src/flex.skl')
-rw-r--r-- | src/flex.skl | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/flex.skl b/src/flex.skl index 10b27e2..4d75395 100644 --- a/src/flex.skl +++ b/src/flex.skl @@ -2498,7 +2498,8 @@ m4_ifdef( [[M4_YY_NO_TOP_STATE]],, %if-c-only static void yy_fatal_error YYFARGS1(yyconst char*, msg) { - m4_dnl M4_YY_DECL_GUTS_VAR(); + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } @@ -2981,6 +2982,9 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], #ifndef yytext_ptr static void yy_flex_strncpy YYFARGS3( char*,s1, yyconst char *,s2, int,n) { + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); + int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; @@ -3006,6 +3010,8 @@ m4_ifdef( [[M4_YY_NO_FLEX_ALLOC]],, [[ void *yyalloc YYFARGS1( yy_size_t ,size) { + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); return (void *) malloc( size ); } ]]) @@ -3014,6 +3020,9 @@ m4_ifdef( [[M4_YY_NO_FLEX_REALLOC]],, [[ void *yyrealloc YYFARGS2( void *,ptr, yy_size_t ,size) { + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); + /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -3029,6 +3038,8 @@ m4_ifdef( [[M4_YY_NO_FLEX_FREE]],, [[ void yyfree YYFARGS1( void *,ptr) { + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } ]]) @@ -3123,6 +3134,9 @@ static int yytbl_hdr_read YYFARGS2(struct yytbl_hdr *, th, struct yytbl_reader * static struct yytbl_dmap *yytbl_dmap_lookup YYFARGS2(struct yytbl_dmap *, dmap, int, id) { + M4_YY_DECL_GUTS_VAR(); + M4_YY_NOOP_GUTS_VAR(); + while (dmap->dm_id) if (dmap->dm_id == id) return dmap; |