ports/171892: graphics/libvisual04-plugins: unbreak with clang

Dima Panov fluffy at FreeBSD.org
Sun Sep 23 13:30:09 UTC 2012


>Number:         171892
>Category:       ports
>Synopsis:       graphics/libvisual04-plugins: unbreak with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 23 13:30:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Dima Panov
>Release:        FreeBSD 10.0-1000018-CURRENT amd64
>Organization:
Twilight Zone
>Environment:
System: FreeBSD Beastie.Fluffy.Khv.RU 10.0-1000018-CURRENT FreeBSD 10.0-1000018-CURRENT #0: Thu Sep 20 02:02:51 VLAT 2012 toor at Beastie.Fluffy.Khv.RU:/usr/obj/usr/src/sys/Spot amd64


	
>Description:
	fix mistyped return statements, which clang objects strenuously to
	
>How-To-Repeat:
	
>Fix:

	Fix obtained from PkgSrc
	

Index: graphics/libvisual04-plugins/files/patch-plugins_morph_flash_morph__flash.c
===================================================================
RCS file: graphics/libvisual04-plugins/files/patch-plugins_morph_flash_morph__flash.c
diff -N graphics/libvisual04-plugins/files/patch-plugins_morph_flash_morph__flash.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ graphics/libvisual04-plugins/files/patch-plugins_morph_flash_morph__flash.c	23 Sep 2012 13:08:54 -0000
@@ -0,0 +1,13 @@
+- fix mistyped return statements, which clang objects strenuously to
+
+--- plugins/morph/flash/morph_flash.c~	2006-01-27 20:19:18.000000000 +0000
++++ plugins/morph/flash/morph_flash.c
+@@ -116,7 +116,7 @@ int lv_morph_flash_palette (VisPluginDat
+ 	FlashPrivate *priv = visual_object_get_private (VISUAL_OBJECT (plugin));
+ 
+ 	if (src1->pal == NULL || src2->pal == NULL)
+-		return;
++		return 0;
+ 
+ 	if (rate < 0.5)
+ 		visual_palette_blend (pal, src1->pal, &priv->whitepal, rate * 2);


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list