diff options
author | Benjamin Otte <otte@redhat.com> | 2019-12-08 05:07:05 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-12-08 05:07:51 +0100 |
commit | a2864370a0c6751faa4b3ef3b9dc0390b4d1ba46 (patch) | |
tree | 762973c154a1a0cc999008e31abdaf44f3865193 /meson.build | |
parent | 5e07328675aa49d9b84b3ab4405ff94b92835e9c (diff) | |
download | pango-a2864370a0c6751faa4b3ef3b9dc0390b4d1ba46.tar.gz |
build: Move C-only warning flags to right place
The build was complaining about those and that broke -Werror builds.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 55f62974..d4cff2af 100644 --- a/meson.build +++ b/meson.build @@ -69,6 +69,8 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Wold-style-definition', '-Wno-int-conversion', '-Wno-discarded-qualifiers', + '-Werror=implicit', + '-Werror=pointer-to-int-cast', ] test_cflags = test_c_only_flags + [ @@ -86,7 +88,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Wlogical-op', '-Wno-uninitialized', '-Wno-shadow', - '-Werror=implicit', '-Werror=implicit-fallthrough', '-Werror=nonnull', '-Werror=init-self', @@ -99,7 +100,6 @@ elif cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Werror=write-strings', '-Werror=address', '-Werror=int-to-pointer-cast', - '-Werror=pointer-to-int-cast', '-Werror=empty-body', '-Werror=write-strings', '-Werror=unused-but-set-variable', |