summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Lenz <jlenz2@math.uiuc.edu>2005-02-01 18:58:47 +0000
committerJohn Lenz <jlenz2@math.uiuc.edu>2005-02-01 18:58:47 +0000
commit15392cf5f7c0be260f4ee2ad8a4bd89d790d67db (patch)
treeac9b9f947191f1a12fb23564388be416da0724e0
parentdab8a2731d882d8dc4fb975c7d8268246129edda (diff)
downloadswig-15392cf5f7c0be260f4ee2ad8a4bd89d790d67db.tar.gz
Add __attribute__ ((unsued)) to runtime functions for gcc compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Lib/swigrun.swg4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/swigrun.swg b/Lib/swigrun.swg
index 911e028b2..0e903a336 100644
--- a/Lib/swigrun.swg
+++ b/Lib/swigrun.swg
@@ -38,8 +38,12 @@
with your compiler or so.
*/
#ifndef SWIGRUNTIME
+#ifdef __GNUC__
+#define SWIGRUNTIME __attribute__ ((unused)) static
+#else
#define SWIGRUNTIME static
#endif
+#endif
#ifndef SWIGRUNTIMEINLINE
#define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif