aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-30 18:13:02 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-30 18:13:02 +0100
commit14a1ff037694d1e56c1552fbbd15a4a6a3ae7a1d (patch)
treea1646716f7233f361c99a29d584878c004e04ef0
parentce696555f15ff7d583dc85836f81d18cf2c7558d (diff)
Properly cast to const char **
-rw-r--r--cbs.h3
1 files changed, 2 insertions, 1 deletions
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()