mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-26 00:29:27 +00:00
work around compiler warnings in flex-generated debug.c
This commit is contained in:
parent
aa43e7c0db
commit
1d95df15c6
|
@ -957,4 +957,15 @@ void init_lex (char *str, int size) {
|
|||
printf("lex buffer not big enough\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#define WONT_EXECUTE 0
|
||||
static volatile int hack_warnings = (int)&hack_warnings;
|
||||
if (hack_warnings == WONT_EXECUTE) {
|
||||
// flex defines these, but we don't use 'em ...
|
||||
char hack[2];
|
||||
yyunput('\0', hack);
|
||||
input();
|
||||
}
|
||||
#undef WONT_EXECUTE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user