meson: Add -Werror=gnu-empty-initializer to MSVC compat args
authorDylan Baker <dylan@pnwbakers.com>
Thu, 21 Nov 2019 17:11:45 +0000 (09:11 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 26 Nov 2019 20:48:11 +0000 (12:48 -0800)
commita24d6fbae60c01a39fe5a026fb568ab7facc6fbb
tree7bf0f523f70ffb02c213ec39bf5d08459f2cb65f
parent25e58e37186d2ab2474391afe24cb895da50ccb0
meson: Add -Werror=gnu-empty-initializer to MSVC compat args

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:

```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.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build