From 14a1ff037694d1e56c1552fbbd15a4a6a3ae7a1d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 30 Dec 2023 18:13:02 +0100 Subject: Properly cast to const char ** --- cbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cbs.h b/cbs.h index 5117f1d..3702ec1 100644 --- a/cbs.h +++ b/cbs.h @@ -205,7 +205,8 @@ static bool fmdnewer(const char *, const char *); the sources to base as variadic arguments instead of as an array. */ static bool foutdatedv(const char *base, const char **p, size_t n); #define foutdated(s, ...) \ - foutdatedv(s, _vtoa(__VA_ARGS__), lengthof(_vtoa(__VA_ARGS__))) + foutdatedv(s, (const char **)_vtoa(__VA_ARGS__), \ + lengthof(_vtoa(__VA_ARGS__))) /* Rebuild the build script if either it, or this header file have been modified, and execute the newly built script. You should call the rebuild() -- cgit v1.2.3