diff options
Diffstat (limited to 'dirmngr/ldap-url.c')
-rw-r--r-- | dirmngr/ldap-url.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dirmngr/ldap-url.c b/dirmngr/ldap-url.c index 8308514d6..0cb5d4a27 100644 --- a/dirmngr/ldap-url.c +++ b/dirmngr/ldap-url.c @@ -100,6 +100,25 @@ void ldap_pvt_hex_unescape( char *s ); # define LDAP_SCOPE_DEFAULT -1 #endif +#if __GNUC__ +# define MY_GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) +#else +# define MY_GCC_VERSION 0 +#endif + + +/* Avoid warnings about strncpy usage. */ +#if MY_GCC_VERSION >= 80000 +# pragma GCC diagnostic ignored "-Wstringop-truncation" +# pragma GCC diagnostic ignored "-Wstringop-overflow" +#elif defined __clang__ +# pragma clang diagnostic ignored "-Wstringop-truncation" +# pragma clang diagnostic ignored "-Wstringop-overflow" +#endif + + /* $OpenLDAP: pkg/ldap/libraries/libldap/charray.c,v 1.9.2.2 2003/03/03 17:10:04 kurt Exp $ */ |