From 9a40bf2956b89fe323dce07e0fdf572b1fc19a4d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 17 Apr 2003 00:25:55 +0000 Subject: [PATCH] get the fix right --- libs/video/targets/fbset_modes_l.l | 1 + tools/qfcc/source/qc-lex.l | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/video/targets/fbset_modes_l.l b/libs/video/targets/fbset_modes_l.l index 8fd93215d..f59ce7321 100644 --- a/libs/video/targets/fbset_modes_l.l +++ b/libs/video/targets/fbset_modes_l.l @@ -158,5 +158,6 @@ junk . %% #ifdef YY_FLEX_REALLOC_HACK +#else static __attribute__ ((unused)) void (*yyunput_hack)(int, char*) = yyunput; #endif diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index ec47bc3c4..b9d8281dd 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -641,5 +641,6 @@ make_string (char *token) #ifdef YY_FLEX_REALLOC_HACK static void *(*const yy_flex_realloc_hack)(void *,yy_size_t) = yy_flex_realloc; +#else static __attribute__ ((unused)) void (*yyunput_hack)(int, char*) = yyunput; #endif