From 210f2199dda50d6da588de992c8bb32053177ca6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 8 Aug 2014 23:43:47 +0000 Subject: Delete the __attribute__((__bounded__(...))) annotation. That's an OpenBSD-specific gcc-4.2.1 security extension. It's certainly a bad idea to use such stuff in a compatibility header, as other operating systems just won't understand it. --- compat_ohash.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compat_ohash.h b/compat_ohash.h index c5f81ec0..e3124c96 100644 --- a/compat_ohash.h +++ b/compat_ohash.h @@ -56,8 +56,7 @@ void ohash_delete(struct ohash *); unsigned int ohash_lookup_interval(struct ohash *, const char *, const char *, uint32_t); unsigned int ohash_lookup_memory(struct ohash *, const char *, - size_t, uint32_t) - __attribute__ ((__bounded__(__string__,2,3))); + size_t, uint32_t); void *ohash_find(struct ohash *, unsigned int); void *ohash_remove(struct ohash *, unsigned int); void *ohash_insert(struct ohash *, unsigned int, void *); -- cgit