script.y had this code:

  foo *some_func()
  {
    if (...)
    {
      ...
      return something;
    }
    else
    {
      return NULL;
      *s = 0;
    }
  }

This generates a compiler warning:

  script.y: In function `Depile':
  script.y:132: warning: control reaches end of non-void function

Olivier, are you sure your gcc works correctly.  You said you
compile with -Wall, so you should have seen this warning/bug.  I
had a problem with gcc a while ago.  When I compiled with
"-Wall -Werror -g" I got no warnings at all, but with
"-Wall -Werror -g -O2" it worked fine.  Are you sure you are not
running into a similar problem?  Can you post one of your compiler
commands?  Mine look like this:

  $ make CFLAGS="-Wall -Werror -g -O2" bindings.o
  source='bindings.c' object='bindings.o' libtool=no \
  depfile='.deps/bindings.Po' tmpdepfile='.deps/bindings.TPo' \
  depmode=gcc /bin/sh ../depcomp \
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libs
  -I/usr/include/freetype2  -I/usr/X11R6/include   -I/usr/include
  -DFVWM_MODULEDIR=\"/usr/local/libexec/fvwm/2.5.5\"
  -DFVWM_DATADIR=\"/usr/local/share/fvwm\"
  -DFVWM_CONFDIR=\"/usr/local/etc\" -DFVWM_COLORSET_PRIVATE=1 -Wall
  -Werror -g -O2 -c `test -f 'bindings.c' || echo './'`bindings.c

Bye

Dominik ^_^  ^_^
--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to