From a1edd2b133bf3ae4d263cea2f46aacb4b51fccb5 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 10 Sep 2013 14:44:16 +1000 Subject: Use C++ struct initialization {} so can drop -Wno-missing-braces setting for gcc. --- gtk/ScintillaGTK.cxx | 4 ++-- gtk/makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 227a33b3f..273333465 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1218,7 +1218,7 @@ void ScintillaGTK::NotifyParent(SCNotification scn) { } void ScintillaGTK::NotifyKey(int key, int modifiers) { - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = SCN_KEY; scn.ch = key; scn.modifiers = modifiers; @@ -1227,7 +1227,7 @@ void ScintillaGTK::NotifyKey(int key, int modifiers) { } void ScintillaGTK::NotifyURIDropped(const char *list) { - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = SCN_URIDROPPED; scn.text = list; diff --git a/gtk/makefile b/gtk/makefile index 0dbe55460..08edbf91f 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -46,7 +46,7 @@ INCLUDEDIRS=-I ../include -I ../src -I ../lexlib ifdef CHECK_DEPRECATED DEPRECATED=-DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DDISABLE_GDK_FONT endif -CXXBASEFLAGS=-Wall -Wno-missing-braces -pedantic -DGTK -DSCI_LEXER $(INCLUDEDIRS) $(DEPRECATED) +CXXBASEFLAGS=-Wall -pedantic -DGTK -DSCI_LEXER $(INCLUDEDIRS) $(DEPRECATED) ifdef NOTHREADS THREADFLAGS=-DG_THREADS_IMPL_NONE -- cgit v1.2.3