Get rid of compiler warning from lex generated code.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 22 Jan 2002 20:16:16 +0000 (20:16 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Tue, 22 Jan 2002 20:16:16 +0000 (20:16 +0000)
gedcom/gedcom_lex_common.c

index 9e53de5adc0cd3fa31a16175c1ed81d25c27e79f..6f7a1d3ca15252879dee6aa4259a55795727ad74 100644 (file)
@@ -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);                                             \
     }                                                                         \
   }