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
This commit is contained in:
parent
dab8a2731d
commit
15392cf5f7
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue