From 4c2ea5999b24ca6cb846230dc2f5bc3155a30b93 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 6 Apr 2011 17:03:31 +0000 Subject: [PATCH] =?utf8?q?avoid=20GCC=20warning=20"suggest=20braces=20arou?= =?utf8?q?nd=20empty=20body=20in=20an=20=E2=80=98else=E2=80=99=20statement?= =?utf8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 2 ++ src/gtk/notebook.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 9fa6934e87..b506d195b6 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -601,7 +601,9 @@ void wxMenuItem::SetBitmap(const wxBitmap& bitmap) if (m_kind == wxITEM_NORMAL) m_bitmap = bitmap; else + { wxFAIL_MSG("only normal menu items can have bitmaps"); + } } void wxMenuItem::Check( bool check ) diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 3b61cd153e..f418384a36 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -418,7 +418,9 @@ bool wxNotebook::InsertPage( size_t position, pageData->m_image, false, false, m_padding); } else + { wxFAIL_MSG("invalid notebook imagelist"); + } } /* set the label text */ -- 2.45.2