diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-08 23:43:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-08 23:43:47 +0000 |
commit | e9c84e4c9192171aad637d5edfea33f3b3f496f1 (patch) | |
tree | 2db9167f7144a102d0e9b055979efd1bdbe2397c | |
parent | b541554993e21285e48026644bcef45f56d82e8c (diff) | |
download | mandoc-e9c84e4c9192171aad637d5edfea33f3b3f496f1.tar.gz mandoc-e9c84e4c9192171aad637d5edfea33f3b3f496f1.tar.zst mandoc-e9c84e4c9192171aad637d5edfea33f3b3f496f1.zip |
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.
-rw-r--r-- | compat_ohash.h | 3 |
1 files changed, 1 insertions, 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 *); |