summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2020-02-08 08:28:45 +0100
committerKim Woelders <kim@woelders.dk>2020-02-08 08:41:32 +0100
commite3e1717145afcfb71df97b4549d3bc7745173a18 (patch)
treec9f3515da148777da742e030b34b3e1a0083fdb5
parent3274b9244019f3907e25d1fcef65d13075cd8ab9 (diff)
Fix incorrect check for __attribute__ ((unused)))
Worked with gcc which allows nested functions but not with clang-analyzer which doesn't.
-rw-r--r--m4/ec_attribute.m41
1 files changed, 0 insertions, 1 deletions
diff --git a/m4/ec_attribute.m4 b/m4/ec_attribute.m4
index 74d5976..83379fc 100644
--- a/m4/ec_attribute.m4
+++ b/m4/ec_attribute.m4
@@ -20,7 +20,6 @@ AC_DEFUN([EC_C___ATTRIBUTE__],
20 AC_LANG_PROGRAM( 20 AC_LANG_PROGRAM(
21 [[ 21 [[
22#include <stdlib.h> 22#include <stdlib.h>
23 ]], [[
24int foo(int x __attribute__ ((unused))) { exit(1); } 23int foo(int x __attribute__ ((unused))) { exit(1); }
25 ]]) 24 ]])
26 ], 25 ],