X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=m4%2Fattribute.m4;h=0678485903f41d7b69627adf862a5c71a576992a;hb=61701fc35b1708fba93e7559e34339937bbc26ff;hp=11142d8ed919344848a030796505dfc07d5a9935;hpb=fb7b6e7a0c966a88a682f656ca1caeb9a0583c5b;p=meshlink 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],