mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix the build with clang.
PR: ports/166225 Submitted by: Shane Ambler <FreeBSD@Shaneware.biz> Reviewed by: marcus Feature safe: yes
This commit is contained in:
parent
a729825c44
commit
c9eebe3ab4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293778
@ -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);
|
11
x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c
Normal file
11
x11-toolkits/gdl/files/patch-gdl__gdl-dock-item.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user