Skip to content

meson: Add -Werror=gnu-empty-initializer to MSVC compat args

Dylan Baker requested to merge dbaker/mesa:gnu-empty-braces into master

Only clang has this argument (at least as of clang 8 and gcc 9), which errors when using the gcc empty initializer syntax in C:

struct foo f = {};

GCC has a warning for this, but only when using -Wpedantic, which is a lot of noise to lose useful warnings in.

Merge request reports