Skip to content

Commit dfc3c2b

Browse files
committed
Merge branch 'jk/weather-balloon-require-variadic-macro'
We've carried compatibility codepaths for compilers without variadic macros for quite some time, but the world may be ready for them to be removed. Force compilation failure on exotic platforms where variadic macros are not available to find out who screams in such a way that we can easily revert if it turns out that the world is not yet ready. * jk/weather-balloon-require-variadic-macro: git-compat-util: always enable variadic macros
2 parents b6c90a2 + 765dc16 commit dfc3c2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

git-compat-util.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,9 +1176,12 @@ static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size,
11761176
#endif
11771177
#endif
11781178

1179-
#if defined(__GNUC__) || (_MSC_VER >= 1400) || defined(__C99_MACRO_WITH_VA_ARGS)
1179+
/*
1180+
* This is always defined as a first step towards making the use of variadic
1181+
* macros unconditional. If it causes compilation problems on your platform,
1182+
* please report it to the Git mailing list at [email protected].
1183+
*/
11801184
#define HAVE_VARIADIC_MACROS 1
1181-
#endif
11821185

11831186
/* usage.c: only to be used for testing BUG() implementation (see test-tool) */
11841187
extern int BUG_exit_code;

0 commit comments

Comments
 (0)