X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=m4%2Fattribute.m4;h=0678485903f41d7b69627adf862a5c71a576992a;hp=11142d8ed919344848a030796505dfc07d5a9935;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hpb=6c897377f68fc23ca9a8b23a6ca204517998b2e9 diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 11142d8e..06784859 100644 --- a/m4/attribute.m4 +++ b/m4/attribute.m4 @@ -9,8 +9,8 @@ AC_DEFUN([MeshLink_ATTRIBUTE], CFLAGS="$CFLAGS -Wall -Werror" AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [void test(void) __attribute__ (($1)); - void test(void) { return; } + [void *test(void *arg) __attribute__ (($1)); + void *test(void *arg) { return arg; } ], )], [MeshLink_cv_attribute_$1=yes],