Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
let clang use the constant-return error() macro
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 90b988a5c191ed8810ea73ebfe30426bdeb083ba..38ff8030700466004ac7657777c028ce161ab973 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-342,7
+342,7
@@
extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2)))
* trying to help gcc, anyway, it's OK; other compilers will fall back to
* using the function as usual.
*/
-#if defined(__GNUC__)
&& ! defined(__clang__)
+#if defined(__GNUC__)
static inline int const_error(void)
{
return -1;