diff options
Diffstat (limited to 'src/g10lib.h')
-rw-r--r-- | src/g10lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/g10lib.h b/src/g10lib.h index 43281ad3..0ada30a4 100644 --- a/src/g10lib.h +++ b/src/g10lib.h @@ -66,7 +66,6 @@ #define GCC_ATTR_FORMAT_ARG(a) #endif - /* I am not sure since when the unused attribute is really supported. In any case it it only needed for gcc versions which print a warning. Thus let us require gcc >= 3.5. */ @@ -76,6 +75,12 @@ #define GCC_ATTR_UNUSED #endif +#if __GNUC__ >= 4 +# define GCC_ATTR_SENTINEL(a) __attribute__ ((sentinel(a))) +#else +# define GCC_ATTR_SENTINEL(a) +#endif + /* Gettext macros. */ |