Fix the SQ_UNUSED_ARG() macro so that is works with current gcc version.

This commit is contained in:
Markus F.X.J. Oberhumer 2016-08-19 14:23:13 +02:00
parent bd43d374dc
commit 701a0e4ae5

View File

@ -398,7 +398,7 @@ SQUIRREL_API void sq_setnativedebughook(HSQUIRRELVM v,SQDEBUGHOOK hook);
#define SQ_SUCCEEDED(res) (res>=0)
#ifdef __GNUC__
# define SQ_UNUSED_ARG(x) __attribute__((unused)) x
# define SQ_UNUSED_ARG(x) x __attribute__((__unused__))
#else
# define SQ_UNUSED_ARG(x) x
#endif