Skip to content

Commit

Permalink
fix Cppcheck syntaxError in fontutils/mkfv1.c because it doesn't …
Browse files Browse the repository at this point in the history
…see the `freetype/fterrors.h` header
  • Loading branch information
firewave committed Sep 4, 2023
1 parent 1594324 commit 843602c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fontutils/mkfv1.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ static const struct
const char *err_msg;
} ft_errors[] =
#include <freetype/fterrors.h>
#ifdef __cppcheck__
// avoid syntaxError by providing the array contents
{};
#endif

#if 0
/* These lines fix problems with astyle formatting following the ft_errors
Expand Down

0 comments on commit 843602c

Please sign in to comment.