mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
Make sure functions/types needed for profiling are defined.
Profiling runs with debugging disabled but the tests still need TestError and stackTraceTestFileLineSet() to be valid even if they are noops.
This commit is contained in:
parent
0680cfc8dc
commit
6a851994f3
@ -56,6 +56,9 @@ typedef struct ErrorType ErrorType;
|
|||||||
// Declare test error
|
// Declare test error
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
ERROR_DECLARE(TestError);
|
ERROR_DECLARE(TestError);
|
||||||
|
#else
|
||||||
|
// Must always be defined since it might be needed to compile (though not used) during profiling
|
||||||
|
#define TestError AssertError
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/***********************************************************************************************************************************
|
/***********************************************************************************************************************************
|
||||||
|
@ -44,6 +44,9 @@ Internal Functions
|
|||||||
|
|
||||||
// Set line number for the current function on the stack
|
// Set line number for the current function on the stack
|
||||||
void stackTraceTestFileLineSet(unsigned int fileLine);
|
void stackTraceTestFileLineSet(unsigned int fileLine);
|
||||||
|
#else
|
||||||
|
// Must always be valid since it might be needed to compile (though not used) during profiling
|
||||||
|
#define stackTraceTestFileLineSet(fileLine)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Push a new function onto the trace stack
|
// Push a new function onto the trace stack
|
||||||
|
Loading…
Reference in New Issue
Block a user