瀏覽代碼

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

Markus F.X.J. Oberhumer 9 年之前
父節點
當前提交
701a0e4ae5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/squirrel.h

+ 1 - 1
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