From 6673d9ba674c5a9756c437a87a6f1307e49ff332 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 11 Aug 2015 07:49:25 +0000 Subject: Misc (re #1843): Fixed GCC compile warnings of unused variables in third-party libs. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5158 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/build/gsm/config.h | 5 +++++ third_party/build/speex/config.h | 5 +++++ third_party/gsm/src/gsm_create.c | 4 ++-- 3 files changed, 12 insertions(+), 2 deletions(-) (limited to 'third_party') diff --git a/third_party/build/gsm/config.h b/third_party/build/gsm/config.h index a7fec50e..76bab720 100644 --- a/third_party/build/gsm/config.h +++ b/third_party/build/gsm/config.h @@ -7,5 +7,10 @@ //# pragma warning(disable: 4701) // local variable used without initialized #endif +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402 +# pragma GCC diagnostic ignored "-Wunknown-pragmas" +# pragma GCC diagnostic ignored "-Wunused-const-variable" +#endif + #include #include "../../gsm/inc/config.h" diff --git a/third_party/build/speex/config.h b/third_party/build/speex/config.h index be19e733..22a45f86 100644 --- a/third_party/build/speex/config.h +++ b/third_party/build/speex/config.h @@ -29,6 +29,11 @@ //# pragma warning(disable: 4701) // local variable used without initialized #endif +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 402 +# pragma GCC diagnostic ignored "-Wunknown-pragmas" +# pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif + #include /* diff --git a/third_party/gsm/src/gsm_create.c b/third_party/gsm/src/gsm_create.c index a0bf634d..f88cf2b7 100644 --- a/third_party/gsm/src/gsm_create.c +++ b/third_party/gsm/src/gsm_create.c @@ -4,10 +4,10 @@ * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. */ -static char const ident[] = "$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_create.c,v 1.4 1996/07/02 09:59:05 jutta Exp $"; - #include "config.h" +static char const ident[] = "$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/gsm_create.c,v 1.4 1996/07/02 09:59:05 jutta Exp $"; + #ifdef HAS_STRING_H #include #else -- cgit v1.2.3