diff options
author | mezz <mezz@FreeBSD.org> | 2012-03-25 10:14:55 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2012-03-25 10:14:55 +0800 |
commit | d3c3f45cfe72b0c4117b4c4afac69a73c29c7dbd (patch) | |
tree | a9b8834c9d6a069cc9d92aaa8c5238fcbec8ca05 /x11-toolkits | |
parent | 204ff3d4ffd33347405a1d6d4ff467e6bfa0db80 (diff) | |
download | freebsd-ports-gnome-d3c3f45cfe72b0c4117b4c4afac69a73c29c7dbd.tar.gz freebsd-ports-gnome-d3c3f45cfe72b0c4117b4c4afac69a73c29c7dbd.tar.zst freebsd-ports-gnome-d3c3f45cfe72b0c4117b4c4afac69a73c29c7dbd.zip |
Fix the build with clang.
PR: ports/166225
Submitted by: Shane Ambler <FreeBSD@Shaneware.biz>
Reviewed by: marcus
Feature safe: yes
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/gdl/files/patch-gdl__gdl-dock-item-button-image.c | 11 | ||||
-rw-r--r-- | x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item-button-image.c b/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item-button-image.c new file mode 100644 index 000000000000..1d058e9e6a06 --- /dev/null +++ b/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item-button-image.c @@ -0,0 +1,11 @@ +--- ./gdl/gdl-dock-item-button-image.c.orig 2012-03-19 01:16:15.000000000 +1030 ++++ ./gdl/gdl-dock-item-button-image.c 2012-03-19 01:16:32.000000000 +1030 +@@ -49,7 +49,7 @@ + cairo_set_line_width(cr, 1.0); + + style = gtk_widget_get_style (widget); +- g_return_if_fail (style != NULL); ++ g_return_val_if_fail (style != NULL, 0); + color = &style->fg[GTK_STATE_NORMAL]; + cairo_set_source_rgba(cr, color->red / 65535.0, + color->green / 65535.0, color->blue / 65535.0, 0.55); diff --git a/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c b/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c new file mode 100644 index 000000000000..7931c8c0d0f7 --- /dev/null +++ b/x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c @@ -0,0 +1,11 @@ +--- ./gdl/gdl-dock-item.c.orig 2012-03-19 01:15:14.000000000 +1030 ++++ ./gdl/gdl-dock-item.c 2012-03-19 01:15:55.000000000 +1030 +@@ -1816,7 +1816,7 @@ + GtkWidget * + gdl_dock_item_get_grip(GdlDockItem *item) + { +- g_return_if_fail (item != NULL); ++ g_return_val_if_fail (item != NULL, NULL); + g_return_val_if_fail (GDL_IS_DOCK_ITEM (item), NULL); + + return item->_priv->grip; |