summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2015-08-11 07:49:25 +0000
committerNanang Izzuddin <nanang@teluu.com>2015-08-11 07:49:25 +0000
commit6673d9ba674c5a9756c437a87a6f1307e49ff332 (patch)
tree9befe006e1f4ce787fe320a28e80112d35df3271
parentcb4f89c389cd1065d4b46029aa5787aebf03a575 (diff)
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
-rw-r--r--third_party/build/gsm/config.h5
-rw-r--r--third_party/build/speex/config.h5
-rw-r--r--third_party/gsm/src/gsm_create.c4
3 files changed, 12 insertions, 2 deletions
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 <string.h>
#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 <pj/log.h>
/*
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 <string.h>
#else