From 1e6d5317e5b8b2db23fb0c373e6090ab0c2b2103 Mon Sep 17 00:00:00 2001 From: nhmall Date: Sat, 27 Apr 2024 09:08:08 -0400 Subject: [PATCH] warning bit report.c --- src/report.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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*/