]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
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 bf5e235edccefd0f4bad15bbe103542d13d32b7a..8ee2a34fb9981c34f9c3bb3f707b3bf77864986f 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 5461cda48b1403c7ed5e4d0b24557877c8b69027..b53137a52031313ed2edeb22cc803c0954872b7a 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;