DUMPLOG_MSG_COUNT depends on DUMPLOG_CORE for its definition

This commit is contained in:
nhmall
2024-03-07 15:35:12 -05:00
parent 056fcf7173
commit 23e39ee5f5
+2
View File
@@ -539,6 +539,7 @@ NH_panictrace_gdb(void)
const char * const char *
get_saved_pline(int lineno) get_saved_pline(int lineno)
{ {
#ifdef DUMPLOG_CORE
int p; int p;
int limit = DUMPLOG_MSG_COUNT; int limit = DUMPLOG_MSG_COUNT;
if (lineno >= DUMPLOG_MSG_COUNT) if (lineno >= DUMPLOG_MSG_COUNT)
@@ -554,6 +555,7 @@ get_saved_pline(int lineno)
} }
} }
} }
#endif /* DUMPLOG_CORE */
return NULL; return NULL;
} }