Skip to content

Commit

Permalink
Fix va_args error on non-amd64
Browse files Browse the repository at this point in the history
Reported by:	Mark Millard
  • Loading branch information
bdrewery authored and dlangille committed Oct 18, 2021
1 parent c5a5f0b commit e2f2653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/poudriere-sh/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e2f2653

Please sign in to comment.