src: fix djgpp and musl builds

This commit is contained in:
Markus F.X.J. Oberhumer
2022-10-02 19:42:16 +02:00
parent 7398d8f68f
commit 0f42579e68
6 changed files with 18 additions and 3 deletions
+5
View File
@@ -32,6 +32,10 @@
**************************************************************************/
bool upx_doctest_check(int argc, char **argv) {
#if defined(DOCTEST_CONFIG_DISABLE)
UNUSED(argc);
UNUSED(argv);
#else
bool minimal = true; // only show failing tests
bool duration = false; // show timings
bool success = false; // show all tests
@@ -66,6 +70,7 @@ bool upx_doctest_check(int argc, char **argv) {
int r = context.run();
if (context.shouldExit() || r != 0)
return false;
#endif
return true;
}