libXmu: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Apr 16 19:19:22 UTC 2024
test/reallocarray.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 41548e8322062540cce4670c2b7a8ef75b130d82
Author: Matt Turner <mattst88 at gmail.com>
Date: Tue Apr 16 13:44:21 2024 -0400
test: Add prototype for Xmureallocarray to silence warning
In file included from reallocarray.c:50:
../src/reallocarray.c:35:1: warning: no previous prototype for ‘Xmureallocarray’ [-Wmissing-prototypes]
35 | Xmureallocarray(void *optr, size_t nmemb, size_t size)
| ^~~~~~~~~~~~~~~
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/merge_requests/14>
diff --git a/test/reallocarray.c b/test/reallocarray.c
index 878d05e..8a41905 100644
--- a/test/reallocarray.c
+++ b/test/reallocarray.c
@@ -42,6 +42,9 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Walloc-size-larger-than="
+/* to silence missing prototype warning */
+void *Xmureallocarray(void *optr, size_t nmemb, size_t size);
+
/*
* To ensure we're testing our Xmureallocarray and not any system-provided
* reallocarray, we directly include code being tested, since it won't be
More information about the xorg-commit
mailing list