[Uml-devel] Re: Compiler warnings

Jonathan Riddell jr at jriddell.org
Mon Sep 30 15:14:03 UTC 2002


On Mon, 30 Sep 2002, Sebastian Stein wrote:

> flex -+ -otokenizer.cc tokenizer.l
> source='tokenizer.cc' object='tokenizer.o' libtool=no \
> depfile='.deps/tokenizer.Po' tmpdepfile='.deps/tokenizer.TPo' \
> depmode=gcc /bin/sh ../../admin/depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include
> -I/usr/lib/qt-3.0.3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT
> -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef
> -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
> -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
> -fno-builtin -g -O2 -fno-exceptions -fno-check-new  -c -o tokenizer.o `test
> -f tokenizer.cc || echo './'`tokenizer.cc
> (preprocessor produced stderr output, cache bypass)
> tokenizer.l:21: warning: carriage return in preprocessing directive
> tokenizer.l:22: warning: carriage return in preprocessing directive
> tokenizer.l:23: warning: carriage return in preprocessing directive
> tokenizer.l:24: warning: carriage return in preprocessing directive
> tokenizer.l:25: warning: carriage return in preprocessing directive
>
> The file format is dos. To change this is a complete delete from reposority
> and after an add of the new file needed or can I just commit the new version
> in unix mode?
>
> tokenizer.cc:628: warning: `YY_STACK_USED' is not defined
> tokenizer.cc:1984: warning: `YY_MAIN' is not defined
> tokenizer.cc: In method `int yyFlexLexer::yylex()':
> tokenizer.cc:798: warning: label `find_rule' defined but not used
> tokenizer.l: At top level:
> tokenizer.cc:1963: warning: `void * yy_flex_realloc(void *, unsigned int)'
> defined but not used
> source='PersistantClassStore.cc' object='PersistantClassStore.o' libtool=no
> \
> depfile='.deps/PersistantClassStore.Po'
> tmpdepfile='.deps/PersistantClassStore.TPo' \
> depmode=gcc /bin/sh ../../admin/depcomp \
>
> Have we any influence on this warning. If I understand it right,
> tokenizer.cc is generated by flex. Maybe it is something specific to a flex
> version, I have 2.5.4

It's g++ which is complaining, so it may be to do with your version of
gcc.

I've removed the dos line endings from tokenizer.l, see if that makes it
complain less.

Jonathan Riddell






More information about the umbrello-devel mailing list