warning bit report.c
This commit is contained in:
+9
-1
@@ -541,10 +541,16 @@ NH_panictrace_gdb(void)
|
|||||||
# endif /* !PANICTRACE_GDB */
|
# endif /* !PANICTRACE_GDB */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DUMPLOG_CORE
|
||||||
|
#define USED_if_dumplog
|
||||||
|
#else
|
||||||
|
#define USED_if_dumplog UNUSED
|
||||||
|
#endif
|
||||||
|
|
||||||
/* lineno==0 gives the most recent message (e.g.
|
/* lineno==0 gives the most recent message (e.g.
|
||||||
"Do you want to call panic..." if called from #panic) */
|
"Do you want to call panic..." if called from #panic) */
|
||||||
const char *
|
const char *
|
||||||
get_saved_pline(int lineno)
|
get_saved_pline(int lineno USED_if_dumplog)
|
||||||
{
|
{
|
||||||
#ifdef DUMPLOG_CORE
|
#ifdef DUMPLOG_CORE
|
||||||
int p;
|
int p;
|
||||||
@@ -566,6 +572,8 @@ get_saved_pline(int lineno)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef USED_if_dumplog
|
||||||
|
|
||||||
# ifndef NO_SIGNAL
|
# ifndef NO_SIGNAL
|
||||||
/* called as signal() handler, so sent at least one arg */
|
/* called as signal() handler, so sent at least one arg */
|
||||||
/*ARGUSED*/
|
/*ARGUSED*/
|
||||||
|
|||||||
Reference in New Issue
Block a user