Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-10-17 22:22:14 +0300
committerBryan Drewery <bryan@shatow.net>2021-10-17 22:22:14 +0300
commit59a87677c953a2747ca47ccc212fb2db0e970880 (patch)
tree94a4c65fc31fdfddaede14faaeee3738c52ba53f /src
parentef4526594abc3e66dcf745215b6607ec7804c0fd (diff)
Fix va_args error on non-amd64
Reported by: Mark Millard
Diffstat (limited to 'src')
-rw-r--r--src/poudriere-sh/helpers.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/poudriere-sh/helpers.h b/src/poudriere-sh/helpers.h
index 9a9f151a..7bb8656b 100644
--- a/src/poudriere-sh/helpers.h
+++ b/src/poudriere-sh/helpers.h
@@ -107,7 +107,10 @@ void verrorwithstatus(int, const char *, va_list) __printf0like(2, 0) __dead2;
#define exit_(...) exit_X(__VA_ARGS__, _1, _0)(__VA_ARGS__)
#define exit_X(_0, _1, X, ...) exit ## X
#define exit_0(_) return (0)
-#define exit_1(_, status) verrorwithstatus(status, NULL, NULL)
+#define exit_1(_, status) do { \
+ va_list va_empty = {}; \
+ verrorwithstatus(status, NULL, va_empty); \
+} while (0)
/* Getopt compat */
#include "options.h"