Giel van Schijndel schreef:
> Per Inge Mathisen schreef:
>> On Sat, Mar 29, 2008 at 1:26 AM, Giel van Schijndel <[EMAIL PROTECTED]> 
>> wrote:
>>>  -Wmissing-declarations causes compiling of the lexers to generate
>>>  warnings, which due to -Werror now fail to compile.
>> I am sorry about that. Can you post the warnings?
> 
> strres_lexer.l seems to be the only one affected:
>> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -DYY_NO_INPUT -D_GNU_SOURCE=1 
>> -D_REENTRANT -I/usr/include/SDL   -DDEBUG 
>> -DDATADIR="\"/usr/local/share/warzone2100\"" 
>> -DLOCALEDIR="\"/usr/local/share/locale\"" -I../..  -O0 -g -Wall -Werror 
>> -Wno-unused-label -Wno-pointer-to-int-cast -Wmissing-field-initializers 
>> -Wcast-align -Wmissing-declarations  -MT strres_lexer.lex.o -MD -MP -MF 
>> .deps/strres_lexer.lex.Tpo -c -o strres_lexer.lex.o strres_lexer.lex.c
>> cc1: warnings being treated as errors
>> strres_lexer.lex.c:1721: warning: no previous declaration for 
>> 'strres_get_lineno'
>> strres_lexer.lex.c:1730: warning: no previous declaration for 'strres_get_in'
>> strres_lexer.lex.c:1738: warning: no previous declaration for 
>> 'strres_get_out'
>> strres_lexer.lex.c:1746: warning: no previous declaration for 
>> 'strres_get_leng'
>> strres_lexer.lex.c:1755: warning: no previous declaration for 
>> 'strres_get_text'
>> strres_lexer.lex.c:1764: warning: no previous declaration for 
>> 'strres_set_lineno'
>> strres_lexer.lex.c:1776: warning: no previous declaration for 'strres_set_in'
>> strres_lexer.lex.c:1781: warning: no previous declaration for 
>> 'strres_set_out'
>> strres_lexer.lex.c:1786: warning: no previous declaration for 
>> 'strres_get_debug'
>> strres_lexer.lex.c:1791: warning: no previous declaration for 
>> 'strres_set_debug'
>> make[1]: *** [strres_lexer.lex.o] Error 1

Apparently Buginator had the same issues, and after a short debugging
session on IRC we found out that upgrading Flex from 2.5.34 to 2.5.35
solved this issue for the both of us.

-- 
Giel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to