Cleanup compiler warning on e_signals.c:
execinfo.h (which contains the backtrace* functions is only included if OBJECT_PARANOIA_CHECK is defined so add an #ifdef around those calls. SVN revision: 41439
This commit is contained in:
parent
ac691eb2d1
commit
94a3bcae16
|
@ -74,6 +74,7 @@ _e_gdb_print_backtrace(int fd)
|
||||||
static void
|
static void
|
||||||
_e_backtrace_int(int fd, const char *msg, size_t msg_len)
|
_e_backtrace_int(int fd, const char *msg, size_t msg_len)
|
||||||
{
|
{
|
||||||
|
#ifdef OBJECT_PARANOIA_CHECK
|
||||||
char attachmsg[1024];
|
char attachmsg[1024];
|
||||||
void *array[255];
|
void *array[255];
|
||||||
size_t size;
|
size_t size;
|
||||||
|
@ -90,6 +91,7 @@ _e_backtrace_int(int fd, const char *msg, size_t msg_len)
|
||||||
_e_write_safe_int(fd, attachmsg, size);
|
_e_write_safe_int(fd, attachmsg, size);
|
||||||
|
|
||||||
_e_gdb_print_backtrace(fd);
|
_e_gdb_print_backtrace(fd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OBJECT_PARANOIA_CHECK
|
#ifdef OBJECT_PARANOIA_CHECK
|
||||||
|
|
Loading…
Reference in New Issue