[tracker: 5/8] meson: Eanble -Werror=switch




commit 8fc81adbdcfd34c7e46b5638bfe0df550c98ac9b
Author: Daniele Nicolodi <daniele grinta net>
Date:   Sat May 1 20:52:49 2021 +0200

    meson: Eanble -Werror=switch
    
    Make sure all enumeration values are covered in switch statements.

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index f7bdf79ac..52feabdf0 100644
--- a/meson.build
+++ b/meson.build
@@ -83,6 +83,7 @@ cc_warning_flags = [
   # enums with hundreds of entries that are only partially covered in
   # some of the switches.
   '-Wswitch',
+  '-Werror=switch',
   # Too many warnings in libtracker-data/tracker-sparql-grammar.h
   '-Wno-tautological-constant-out-of-range-compare',
   # There are various gchar vs. unsigned char warnings that occur in


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