NICOLAS BOULIANE wrote: > Hi, > > thank you for your comments. > --- > > Pablo: > > cc1: warnings being treated as errors > read_config_lex.l: In function 'yylex': > read_config_lex.l:113: warning: incompatible implicit declaration of > built-in function 'strdup' > read_config_lex.l:114: warning: incompatible implicit declaration of > built-in function 'strdup' > read_config_lex.l:115: warning: incompatible implicit declaration of > built-in function 'strdup' > read_config_lex.l:126: warning: incompatible implicit declaration of > built-in function 'strdup' > read_config_lex.c:3845: warning: label 'find_rule' defined but not used > make[1]: *** [read_config_lex.o] Error 1 > > I get this while compiling the last git snapshot > probably string.h is missing ? Does the patch attached fix it? -- "Los honestos son inadaptados sociales" -- Les Luthiers
diff --git a/src/read_config_lex.l b/src/read_config_lex.l index eb3368a..7daaeab 100644 --- a/src/read_config_lex.l +++ b/src/read_config_lex.l @@ -19,6 +19,8 @@ * Description: configuration file syntax */ +#include <string.h> + #include "read_config_yy.h" %}