diff --git a/src/report.c b/src/report.c index 65c3fcd94..aecca650e 100644 --- a/src/report.c +++ b/src/report.c @@ -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*/