Remove -Wno-missing-field-initializers
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 7 Aug 2017 08:47:40 +0000 (18:47 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 7 Aug 2017 08:47:40 +0000 (18:47 +1000)
CMakeLists.txt
libs/uilib/uilib.cpp

index bf5e235..8ee2a34 100644 (file)
@@ -93,7 +93,6 @@ addflags("-Wno-sign-compare")
 addflags("-Wno-unused-function")
 addflags("-Wno-unused-variable")
 addflags("-Wno-unused-parameter")
-addflags("-Wno-missing-field-initializers")
 
 set(CMAKE_POSITION_INDEPENDENT_CODE 1)
 set(GTK_TARGET 2 CACHE STRING "GTK target")
index 5461cda..b53137a 100644 (file)
@@ -14,7 +14,7 @@ namespace ui {
     bool init(int *argc, char **argv[], char const *parameter_string, char const **error)
     {
         gtk_disable_setlocale();
-        static GOptionEntry entries[] = {{NULL}};
+        static GOptionEntry entries[] = {{}};
         char const *translation_domain = NULL;
         GError *gerror = NULL;
         bool ret = gtk_init_with_args(argc, argv, parameter_string, entries, translation_domain, &gerror) != 0;