From 701a0e4ae5e5a79f6eeee5e61be57516b0aaefa0 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Fri, 19 Aug 2016 14:23:13 +0200 Subject: [PATCH] Fix the SQ_UNUSED_ARG() macro so that is works with current gcc version. --- include/squirrel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/squirrel.h b/include/squirrel.h index f0f3e64..28d9102 100644 --- a/include/squirrel.h +++ b/include/squirrel.h @@ -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