warning bit report.c

This commit is contained in:
nhmall
2024-04-27 09:08:08 -04:00
parent 9c30c1d08f
commit 1e6d5317e5

View File

@@ -541,10 +541,16 @@ NH_panictrace_gdb(void)
# 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.
"Do you want to call panic..." if called from #panic) */
const char *
get_saved_pline(int lineno)
get_saved_pline(int lineno USED_if_dumplog)
{
#ifdef DUMPLOG_CORE
int p;
@@ -566,6 +572,8 @@ get_saved_pline(int lineno)
return NULL;
}
#undef USED_if_dumplog
# ifndef NO_SIGNAL
/* called as signal() handler, so sent at least one arg */
/*ARGUSED*/