BUG_exit_code: fix sparse "symbol not declared" warning
[gitweb.git] / git-compat-util.h
index 3a7216f53138d53544c4805c96bd6ec6df99d844..3a051de4506809b3e3bd454d175ea1d5dacbc6c4 100644 (file)
@@ -1111,6 +1111,9 @@ static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size,
 #define HAVE_VARIADIC_MACROS 1
 #endif
 
+/* usage.c: only to be used for testing BUG() implementation (see test-tool) */
+extern int BUG_exit_code;
+
 #ifdef HAVE_VARIADIC_MACROS
 __attribute__((format (printf, 3, 4))) NORETURN
 void BUG_fl(const char *file, int line, const char *fmt, ...);