dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0775fe
)
Get rid of compiler warning from lex generated code.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Tue, 22 Jan 2002 20:16:16 +0000
(20:16 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Tue, 22 Jan 2002 20:16:16 +0000
(20:16 +0000)
gedcom/gedcom_lex_common.c
patch
|
blob
|
history
diff --git
a/gedcom/gedcom_lex_common.c
b/gedcom/gedcom_lex_common.c
index 9e53de5adc0cd3fa31a16175c1ed81d25c27e79f..6f7a1d3ca15252879dee6aa4259a55795727ad74 100644
(file)
--- a/
gedcom/gedcom_lex_common.c
+++ b/
gedcom/gedcom_lex_common.c
@@
-284,11
+284,15
@@
int test_loop(ENCODING enc, char* code)
return CLOSE; \
} \
else { \
+ char* ptr; int size; \
/* Reset our state */ \
current_level = -1; \
level_diff = MAXGEDCLEVEL; \
/* ... then terminate lex */ \
yyterminate(); \
+ /* Get rid of f*cking compiler warning from lex generated code */ \
+ /* yyterminate does return(), so program will never come here */ \
+ yy_flex_realloc(ptr, size); \
} \
}