diff options
author | John Lenz <jlenz2@math.uiuc.edu> | 2005-02-01 18:58:47 +0000 |
---|---|---|
committer | John Lenz <jlenz2@math.uiuc.edu> | 2005-02-01 18:58:47 +0000 |
commit | 15392cf5f7c0be260f4ee2ad8a4bd89d790d67db (patch) | |
tree | ac9b9f947191f1a12fb23564388be416da0724e0 | |
parent | dab8a2731d882d8dc4fb975c7d8268246129edda (diff) | |
download | swig-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.swg | 4 |
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 |