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)
This commit is contained in:
parent
7ad86b4ec6
commit
67d016a164
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432979
11
emulators/snes9express/files/patch-frend.cc
Normal file
11
emulators/snes9express/files/patch-frend.cc
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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);
|
Loading…
Reference in New Issue
Block a user