[gnome-commander] Suppress gcc warning for comparing signed and unsigned type
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Suppress gcc warning for comparing signed and unsigned type
- Date: Fri, 28 Apr 2017 21:38:31 +0000 (UTC)
commit 88b82896678143919c66a9db2da853eac72603d1
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sat Apr 22 16:24:53 2017 +0200
Suppress gcc warning for comparing signed and unsigned type
This should be fine here...
src/gnome-cmd-con-device.cc | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index f29a215..ee3f910 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -475,7 +475,10 @@ void gnome_cmd_con_device_set_icon_path (GnomeCmdConDevice *dev, const gchar *ic
if (overlay)
{
GdkPixbuf *umount = IMAGE_get_pixbuf (PIXMAP_OVERLAY_UMOUNT);
-
+#if defined (__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
if (umount)
{
gdk_pixbuf_copy_area (umount, 0, 0,
@@ -485,7 +488,9 @@ void gnome_cmd_con_device_set_icon_path (GnomeCmdConDevice *dev, const gchar *ic
con->close_pixmap = gnome_cmd_pixmap_new_from_pixbuf (overlay);
}
-
+#if defined (__GNUC__)
+#pragma GCC diagnostic pop
+#endif
g_object_unref (overlay);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]