diff --git a/rpcrig/rpcrig.x b/rpcrig/rpcrig.x index c659811ca..448829517 100644 --- a/rpcrig/rpcrig.x +++ b/rpcrig/rpcrig.x @@ -20,6 +20,11 @@ % * % */ +% #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +% /* rpcgen produces code containing unused variables. hush that... */ +% # pragma GCC diagnostic ignored "-Wunused-variable" +% #endif + /* This gets stuffed into the source files. */ #if RPC_HDR %#ifdef HAVE_CONFIG_H diff --git a/rpcrot/rpcrot.x b/rpcrot/rpcrot.x index ef11d019b..a2727cf55 100644 --- a/rpcrot/rpcrot.x +++ b/rpcrot/rpcrot.x @@ -21,6 +21,11 @@ % * % */ +% #if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +% /* rpcgen produces code containing unused variables. hush that... */ +% # pragma GCC diagnostic ignored "-Wunused-variable" +% #endif + /* This gets stuffed into the source files. */ #if RPC_HDR %#ifdef HAVE_CONFIG_H