OSDN Git Service

Define HAVE_ATTRIBUTE__SENTINEL__ to 1.
authorJosh Gao <jmgao@google.com>
Thu, 11 Aug 2016 19:59:41 +0000 (12:59 -0700)
committerJosh Gao <jmgao@google.com>
Thu, 11 Aug 2016 20:01:00 +0000 (13:01 -0700)
The #define in config.h for __sentinel__ is incorrect and doesn't
handle __attribute__((__sentinel__(1))). Since we have the attribute,
just turn it on.

Change-Id: Ifaced8170a274d2d0e527f892986795aaffedb69

config.h

index 053c276..4d012f1 100644 (file)
--- a/config.h
+++ b/config.h
 #define HAVE_ATTRIBUTE__NONNULL__ 1
 
 /* OpenBSD's gcc has sentinel */
-/* #undef HAVE_ATTRIBUTE__SENTINEL__ */
+#define HAVE_ATTRIBUTE__SENTINEL__ 1
 
 /* Define to 1 if you have the `aug_get_machine' function. */
 /* #undef HAVE_AUG_GET_MACHINE */