We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6a1ad9 + e2c6f7c commit 5416f8aCopy full SHA for 5416f8a
git-compat-util.h
@@ -58,15 +58,13 @@
58
#define BUILD_ASSERT_OR_ZERO(cond) \
59
(sizeof(char [1 - 2*!(cond)]) - 1)
60
61
-#if defined(__GNUC__) && (__GNUC__ >= 3)
62
-# if GIT_GNUC_PREREQ(3, 1)
+#if GIT_GNUC_PREREQ(3, 1)
63
/* &arr[0] degrades to a pointer: a different type from an array */
64
# define BARF_UNLESS_AN_ARRAY(arr) \
65
BUILD_ASSERT_OR_ZERO(!__builtin_types_compatible_p(__typeof__(arr), \
66
__typeof__(&(arr)[0])))
67
-# else
68
-# define BARF_UNLESS_AN_ARRAY(arr) 0
69
-# endif
+#else
+# define BARF_UNLESS_AN_ARRAY(arr) 0
70
#endif
71
/*
72
* ARRAY_SIZE - get the number of elements in a visible array
0 commit comments