Dough. Get rid of warnings
This commit was SVN r4221.
Этот коммит содержится в:
родитель
418d184c45
Коммит
f822ffc5ff
@ -46,6 +46,7 @@
|
||||
* @param info with information regarding the reason/send of the signal
|
||||
* @param p
|
||||
*
|
||||
* FIXME: Should distinguish for systems, which don't have siginfo...
|
||||
*/
|
||||
#ifndef WIN32
|
||||
static void ompi_show_stackframe (int signo, siginfo_t * info, void * p)
|
||||
@ -60,7 +61,7 @@ static void ompi_show_stackframe (int signo, siginfo_t * info, void * p)
|
||||
char * tmp = print_buffer;
|
||||
int size = sizeof (print_buffer);
|
||||
int ret;
|
||||
char * str;
|
||||
char * str="";
|
||||
|
||||
/*
|
||||
* Yes, we are doing printf inside a signal-handler.
|
||||
|
@ -21,23 +21,6 @@
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This function is being called as a signal-handler in response
|
||||
* to a user-specified signal (e.g. SIGFPE or SIGSEGV).
|
||||
* For Linux/Glibc, it then uses backtrace and backtrace_symbols
|
||||
* to figure the current stack and then prints that out to stdout.
|
||||
* Yes, printf and malloc are not signal-safe per se, but should be
|
||||
* on Linux?
|
||||
*
|
||||
* @param signo with the signal number raised
|
||||
* @param act with information regarding the reason/send of the signal
|
||||
* @param oldact
|
||||
*
|
||||
*/
|
||||
#ifndef WIN32
|
||||
static void ompi_show_stackframe (int signo, siginfo_t * info, void * p);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Here we register the ompi_show_stackframe function for signals
|
||||
* passed to OpenMPI by the mpi_signal-parameter passed to mpirun
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user