From 06a765d5a16ebe4ebd79dbeb32c470283ba959cf Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 9 Oct 2011 19:28:40 +0000 Subject: [PATCH] Evas: big mistake in efl_attribute.m4. My bad SVN revision: 63935 --- legacy/evas/m4/efl_attribute.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/evas/m4/efl_attribute.m4 b/legacy/evas/m4/efl_attribute.m4 index e814e36354..b0cb3f143d 100644 --- a/legacy/evas/m4/efl_attribute.m4 +++ b/legacy/evas/m4/efl_attribute.m4 @@ -12,9 +12,9 @@ AC_MSG_CHECKING([for __attribute__ ((unused))]) 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"]) @@ -22,6 +22,8 @@ AC_MSG_RESULT([${have_attribute_unused}]) 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 ])