Thread View: gnu.groff.bug
1 messages
1 total messages
Started by John W. Pope
Tue, 15 Sep 1992 05:15
indxbib.cc compiled under gcc 2.2
Author: John W. Pope
Date: Tue, 15 Sep 1992 05:15
Date: Tue, 15 Sep 1992 05:15
21 lines
1417 bytes
1417 bytes
I had to force the following casts upon the "fatal_signal()" function to avoid having gcc optimize the pointers to an "auto" storage class... signal(SIGHUP, (void (*)(int,...))fatal_signal); signal(SIGINT, (void (*)(int,...))fatal_signal); signal(SIGTERM, (void (*)(int,...))fatal_signal); ./indxbib/indxbib.cc circa line 219 the error messages were: indxbib.cc:218: incompatible pointer types for argument 1 of `void (* signal (int, auto void (*)(int ...)))(int ...)' indxbib.cc:219: incompatible pointer types for argument 1 of `void (* signal (int, auto void (*)(int ...)))(int ...)' indxbib.cc:220: incompatible pointer types for argument 1 of `void (* signal (int, auto void (*)(int ...)))(int ...)' It makes sense that the signal handler CAN'T be passed an auto pointer... who knows what will be put there after leaving the function... JP (need more info? email me jwpope@uswest.com) kudo's to jjc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads