[pango/fix-build] build: Move C-only warning flags to right place



commit a2864370a0c6751faa4b3ef3b9dc0390b4d1ba46
Author: Benjamin Otte <otte redhat com>
Date:   Sun Dec 8 05:07:05 2019 +0100

    build: Move C-only warning flags to right place
    
    The build was complaining about those and that broke -Werror builds.

 meson.build | 4 ++--
 1 file 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',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]