From: TimePath Date: Mon, 7 Aug 2017 08:47:40 +0000 (+1000) Subject: Remove -Wno-missing-field-initializers X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21c01c51773c8ebe156e57422a8ead0881264b25;p=xonotic%2Fnetradiant.git Remove -Wno-missing-field-initializers --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bf5e235e..8ee2a34f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/libs/uilib/uilib.cpp b/libs/uilib/uilib.cpp index 5461cda4..b53137a5 100644 --- a/libs/uilib/uilib.cpp +++ b/libs/uilib/uilib.cpp @@ -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;