diff options
-rw-r--r-- | src/lib/kdb/iprop.x | 16 | ||||
-rw-r--r-- | src/lib/kdb/iprop_xdr.c | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/lib/kdb/iprop.x b/src/lib/kdb/iprop.x index 82ffdfe059..b04a453ed8 100644 --- a/src/lib/kdb/iprop.x +++ b/src/lib/kdb/iprop.x @@ -18,8 +18,22 @@ * kadmin/server/ipropd_svc.c */ +/* + * This file gets fed through the preprocessor to handle RPC_* + * symbols, but we don't want it to chew on __GNUC__ in this phase. + */ +#undef __GNUC__ + #ifdef RPC_XDR -%#include "iprop.h" +/* + * Sloppy rpcgen code declares "buf" and rarely uses it. As it's + * generated code, and not presented to code building against the + * Kerberos code, it's not a problem we need to fix, so suppress the + * complaint. + */ +%#ifdef __GNUC__ +%#pragma GCC diagnostic ignored "-Wunused-variable" +%#endif #endif /* RPC_XDR */ /* diff --git a/src/lib/kdb/iprop_xdr.c b/src/lib/kdb/iprop_xdr.c index 093c056760..2ab59f5707 100644 --- a/src/lib/kdb/iprop_xdr.c +++ b/src/lib/kdb/iprop_xdr.c @@ -5,7 +5,9 @@ */ #include "iprop.h" -#include "iprop.h" +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wunused-variable" +#endif bool_t xdr_int16_t (XDR *xdrs, int16_t *objp) |