fix unused for 3.3.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dd9243c57b
commit
7e7191a010
1 changed files with 8 additions and 1 deletions
|
|
@ -29,7 +29,14 @@
|
|||
|
||||
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
||||
#ifndef SWIGUNUSED
|
||||
# if defined(__GNUC__) || defined(__ICC)
|
||||
# if defined(__GNUC__)
|
||||
/* Old G++ versions has problems with this attribute, but not GCC */
|
||||
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
||||
# define SWIGUNUSED __attribute__ ((__unused__))
|
||||
# else
|
||||
# define SWIGUNUSED
|
||||
# endif
|
||||
# elif defined(__ICC)
|
||||
# define SWIGUNUSED __attribute__ ((__unused__))
|
||||
# else
|
||||
# define SWIGUNUSED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue