From 18fdf34e65a3827ab17a02538879e7daa975dceb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 21 Nov 2002 20:16:36 +0000 Subject: pragma to avoid MSVC warning. --- gtk/PlatGTK.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 8c19e5f85..1bfd0c22f 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1371,6 +1371,11 @@ void ListBox::Sort() { gtk_clist_sort(GTK_CLIST(list)); } +// g_return_if_fail causes unnecessary compiler warning in release compile. +#ifdef _MSC_VER +#pragma warning(disable: 4127) +#endif + void ListBox::SetTypeXpm(int type, const char **xpm_data) { ListImage *list_image; g_return_if_fail(xpm_data); -- cgit v1.2.3