From 15392cf5f7c0be260f4ee2ad8a4bd89d790d67db Mon Sep 17 00:00:00 2001 From: John Lenz Date: Tue, 1 Feb 2005 18:58:47 +0000 Subject: [PATCH] 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 --- Lib/swigrun.swg | 4 ++++ 1 file changed, 4 insertions(+) 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