Building a testdir on Android, I get this warning:

../../gltests/test-memset_explicit.c:26:1: warning: incompatible function 
pointer types initializing 'void (*)(void *, int, size_t)' (aka 'void (*)(void 
*, int, unsigned int)') with an expression of type 'void *(void *, int, 
size_t)' (aka 'void *(void *, int, unsigned int)') 
[-Wincompatible-function-pointer-types]

This patch fixes it.


2023-01-10  Bruno Haible  <br...@clisp.org>

        memset_explicit tests: Fix signature check.
        * tests/test-memset_explicit.c: Fix return type in signature check.

diff --git a/tests/test-memset_explicit.c b/tests/test-memset_explicit.c
index ff5b9e62ef..b36a7cfe76 100644
--- a/tests/test-memset_explicit.c
+++ b/tests/test-memset_explicit.c
@@ -23,7 +23,7 @@
 #include <string.h>
 
 #include "signature.h"
-SIGNATURE_CHECK (memset_explicit, void, (void *, int, size_t));
+SIGNATURE_CHECK (memset_explicit, void *, (void *, int, size_t));
 
 #include <limits.h>
 #include <stdio.h>




Reply via email to