summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2013-07-03 11:56:58 +0900
committerAkira TAGOH <akira@tagoh.org>2013-07-03 11:56:58 +0900
commit1162515a9819c7355890aad919e5b9daa448a3a4 (patch)
tree41725a4ff42617a62052ff615cfe90c76cfef66f
parentcbf06d7d3c797b97d720909fd4554d1771d41c20 (diff)
downloadfontconfig-1162515a9819c7355890aad919e5b9daa448a3a4.tar.gz
Add FC_UNUSED to FC_ASSERT_STATIC macro to avoid compiler warning
-rw-r--r--src/fcint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcint.h b/src/fcint.h
index 269c1e6..9dff033 100644
--- a/src/fcint.h
+++ b/src/fcint.h
@@ -86,7 +86,7 @@ extern pfnSHGetFolderPathA pSHGetFolderPathA;
#define FC_DBG_CONFIG 1024
#define FC_DBG_LANGSET 2048
-#define _FC_ASSERT_STATIC1(_line, _cond) typedef int _static_assert_on_line_##_line##_failed[(_cond)?1:-1]
+#define _FC_ASSERT_STATIC1(_line, _cond) typedef int _static_assert_on_line_##_line##_failed[(_cond)?1:-1] FC_UNUSED
#define _FC_ASSERT_STATIC0(_line, _cond) _FC_ASSERT_STATIC1 (_line, (_cond))
#define FC_ASSERT_STATIC(_cond) _FC_ASSERT_STATIC0 (__LINE__, (_cond))