[master] 1e533a6 On the other hand...
Poul-Henning Kamp
phk at FreeBSD.org
Wed Oct 4 10:21:07 UTC 2017
commit 1e533a60df47c261c70219c15c5e374656b8ea00
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Oct 4 10:20:27 2017 +0000
On the other hand...
diff --git a/include/vdef.h b/include/vdef.h
index af52571..0a23407 100644
--- a/include/vdef.h
+++ b/include/vdef.h
@@ -127,7 +127,11 @@
#endif
#ifndef __unused
-# define __unused __attribute__((__unused__))
+# if __GNUC_PREREQ__(2, 7)
+# define __unused __attribute__((__unused__))
+# else
+# define __unused
+# endif
#endif
/*
@@ -136,9 +140,7 @@
#ifndef __has_extension
# define __has_extension(x) 0
#endif
-#ifndef __GNUC_PREREQ__
-# define __GNUC_PREREQ__(x,y) 0
-#endif
+
#if defined(_Static_assert)
/* Nothing, somebody already did this for us */
#elif __has_extension(c_static_assert)
More information about the varnish-commit
mailing list