Compiling Pike 7.4.44 with GCC 3.4.0:
Compiling /export/home/marcus/Pike-v7.4.44/src/interpret.c In file included from /export/home/marcus/Pike-v7.4.44/src/interpret.c:1225: /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h: In function `opcode_F_CATCH': /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h:1188: warning: function called through a non-compatible type /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h:1188: note: if this code is reached, the program will abort /export/home/marcus/Pike-v7.4.44/src/interpret.c: In function `mega_apply': /export/home/marcus/Pike-v7.4.44/src/interpret.c:1750: warning: function called through a non-compatible type /export/home/marcus/Pike-v7.4.44/src/interpret.c:1750: note: if this code is reached, the program will abort
Hm, the part about "if this code is reached, the program will abort" doesn't sound very good...
The root of the problem seems to be that the macro check_c_stack() casts "low_error" to a varargs functions. For no apparent reason at that...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-04-29 00:14: Subject: function called through a non-compatible type
Compiling Pike 7.4.44 with GCC 3.4.0:
Compiling /export/home/marcus/Pike-v7.4.44/src/interpret.c In file included from /export/home/marcus/Pike-v7.4.44/src/interpret.c:1225: /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h: In function `opcode_F_CATCH': /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h:1188: warning: function called through a non-compatible type /export/spare/pike/home/nilsson/Pike/7.4/src/interpret_functions.h:1188: note: if this code is reached, the program will abort /export/home/marcus/Pike-v7.4.44/src/interpret.c: In function `mega_apply': /export/home/marcus/Pike-v7.4.44/src/interpret.c:1750: warning: function called through a non-compatible type /export/home/marcus/Pike-v7.4.44/src/interpret.c:1750: note: if this code is reached, the program will abort
Hm, the part about "if this code is reached, the program will abort" doesn't sound very good...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Just removing the cast fixes the warnings. Interestingly, the log message for _introducing_ the cast was "Fixed a few warnings."...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-04-29 00:20: Subject: function called through a non-compatible type
The root of the problem seems to be that the macro check_c_stack() casts "low_error" to a varargs functions. For no apparent reason at that...
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
pike-devel@lists.lysator.liu.se