From 843602c615b27cdfa75b4803db9df5d2562d1287 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 4 Sep 2023 11:50:29 +0200 Subject: [PATCH] fix Cppcheck `syntaxError` in `fontutils/mkfv1.c` because it doesn't see the `freetype/fterrors.h` header --- fontutils/mkfv1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fontutils/mkfv1.c b/fontutils/mkfv1.c index a0cdc337f..0135ae794 100644 --- a/fontutils/mkfv1.c +++ b/fontutils/mkfv1.c @@ -37,6 +37,10 @@ static const struct const char *err_msg; } ft_errors[] = #include +#ifdef __cppcheck__ + // avoid syntaxError by providing the array contents + {}; +#endif #if 0 /* These lines fix problems with astyle formatting following the ft_errors