]> git.meshlink.io Git - meshlink/blobdiff - m4/attribute.m4
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / m4 / attribute.m4
index 11142d8ed919344848a030796505dfc07d5a9935..0678485903f41d7b69627adf862a5c71a576992a 100644 (file)
@@ -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],