Re: [dev] inline funtions: control may reach end of non-void function (compiler bug on Mac OS X)

2007-01-09 Thread Pavel Janík
- adding return FALSE; at the end of the inline function This might lead to warning "unreachable code" with other compilers, so Yes, I was simply searching for this argument! Thanks. Will remove "else" and reindent ;-) -- Pavel Janík [EMAIL PROTECTED]

Re: [dev] inline funtions: control may reach end of non-void function (compiler bug on Mac OS X)

2007-01-08 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Pavel, > I see several "fixes" to this: > > - adding return FALSE; at the end of the inline function This might lead to warning "unreachable code" with other compilers, so > - removing "else" seems better. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - S

Re: [dev] inline funtions: control may reach end of non-void function (compiler bug on Mac OS X)

2007-01-06 Thread Caio Tiago Oliveira
Pavel Janík, 06-01-2007 09:59: Hi, I'd like to make vcl compilable without warnings on Mac OS X and I found something that I do not know how to fix properly... /Users/pavel/BUILD/X11/BuildDir/ooo_SRC680_m199_src/vcl/source/app/ svapp.cxx:1715: warning: control may reach end of non-void funct

[dev] inline funtions: control may reach end of non-void function (compiler bug on Mac OS X)

2007-01-06 Thread Pavel Janík
Hi, I'd like to make vcl compilable without warnings on Mac OS X and I found something that I do not know how to fix properly... /Users/pavel/BUILD/X11/BuildDir/ooo_SRC680_m199_src/vcl/source/app/ svapp.cxx:1715: warning: control may reach end of non-void function 'BOOL KeyCode::IsDefinedK