X-Git-Url: https://git.librecmc.org/?p=oweals%2Ftinc.git;a=blobdiff_plain;f=m4%2Fattribute.m4;h=9d673e969603094e0a7e878561ad805269a98e8e;hp=6a8f5558c9ef9b53a6744e03e2e507a5e48f6c06;hb=16ffd4a1c610b2c7ee1567bafdd4a0271584da0e;hpb=fcd836c609568fab323f4af6dd525de957a6f4cc diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 6a8f555..9d673e9 100644 --- a/m4/attribute.m4 +++ b/m4/attribute.m4 @@ -9,8 +9,8 @@ AC_DEFUN([tinc_ATTRIBUTE], CFLAGS="$CFLAGS -Wall -Werror" AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [void test(void) __attribute__ (($1)); - void test(void) { return; } + [void *test(void) __attribute__ (($1)); + void *test(void) { return (void *)0; } ], )], [tinc_cv_attribute_$1=yes],