Commit 21a9ca8c authored by Laurent Thomas's avatar Laurent Thomas

gcc warning fix

parent 6086d9c0
......@@ -180,12 +180,13 @@ void softmodem_printresources(int sig, telnet_printfunc_t pf) {
}
void signal_handler(int sig) {
void *array[10];
size_t size;
//void *array[10];
//size_t size;
if (sig==SIGSEGV) {
// get void*'s for all entries on the stack
/*
/* backtrace uses malloc, that is not good in signal handlers
* I let the code, because it would be nice to make it better
size = backtrace(array, 10);
// print out all the frames to stderr
fprintf(stderr, "Error: signal %d:\n", sig);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment