Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configure.ac: enable
CFLAGS=-Wpedantic
and fix the build
`meson` enables `-Wpedantic` option for some cases of warning levels. Unfortunataly it not only enables warnings but also rejects otherwise valid code to be accepted as: CC encoder/formats.gen.o encoder/formats.gen.c:29:14: error: array size missing in 'formatName' 29 | static char *formatName[]; | ^~~~~~~~~~ encoder/formats.gen.c:44:14: error: conflicting types for 'formatName'; have 'char *[119]' 44 | static char *formatName[NUM_FORMATS+1] = { | ^~~~~~~~~~ encoder/formats.gen.c:29:14: note: previous declaration of 'formatName' with type 'char *[1]' 29 | static char *formatName[]; | ^~~~~~~~~~ encoder/formats.gen.c:44:14: warning: 'formatName' defined but not used [-Wunused-variable] 44 | static char *formatName[NUM_FORMATS+1] = { | ^~~~~~~~~~ The change fixes the inconsistency between the declaration and the definition.
- Loading branch information