From fbb353503a1edd8227871e4f6745ce1312b9fcf2 Mon Sep 17 00:00:00 2001 From: "Kamal Mostafa, KA6MAL" Date: Sun, 27 Feb 2011 21:19:47 +0000 Subject: [PATCH] source warnings cleanup: rpcgen-generated code Quell 124 unused variable warnings from the rpcgen-generated code in rpcrig and rpcrot git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3062 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- rpcrig/rpcrig.x | 5 +++++ rpcrot/rpcrot.x | 5 +++++ 2 files changed, 10 insertions(+) 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