aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-11-21 20:16:36 +0000
committernyamatongwe <devnull@localhost>2002-11-21 20:16:36 +0000
commit18fdf34e65a3827ab17a02538879e7daa975dceb (patch)
tree04c6e96391c2ecc1d762ae2cd3face48343cc3c2
parentfd28ea00badd7c830037d629f2e6f0965247b7e3 (diff)
downloadscintilla-mirror-18fdf34e65a3827ab17a02538879e7daa975dceb.tar.gz
pragma to avoid MSVC warning.
-rw-r--r--gtk/PlatGTK.cxx5
1 files changed, 5 insertions, 0 deletions
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);