git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@63934
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[
+void foo(int x __attribute__ ((unused))) {}
]],
[[
-void foo(int x __attribute__ ((unused))) {}
]])],
[have_attribute_unused="yes"],
[have_attribute_unused="no"])
if test "x${have_attribute_unused}" = "xyes" ; then
AC_DEFINE([__UNUSED__], [__attribute__ ((unused))], [Macro declaring a function argument to be unused.])
+else
+ AC_DEFINE([__UNUSED__], [], [__attribute__ ((unused)) is not supported.])
fi
])