freebsd-ports/emulators/snes9express/files/patch-frend.cc
Jan Beich 67d016a164 emulators/snes9express: unbreak with clang 4.0
frend.cc:2530:21: error: ordered comparison between pointer and zero ('frend::Image *' and 'int')
                        if(items[i].icon > 0)
                           ~~~~~~~~~~~~~ ^ ~

Reported by:	antoine (via exp-run)
2017-02-01 05:27:33 +00:00

11 lines
305 B
C++

--- frend.cc.orig 2009-12-21 22:38:54 UTC
+++ frend.cc
@@ -2527,7 +2527,7 @@ void Window::addMenu(const char*label, M
{
if(strcmp(items[i].label, "-"))
{
- if(items[i].icon > 0)
+ if(items[i].icon)
{
menu_item = gtk_menu_item_new();
GtkWidget *hbox = gtk_hbox_new(false, false);