[Pixman] [PATCH] void function should not return a value

Simon Richter Simon.Richter at hogyros.de
Fri Feb 22 21:51:57 UTC 2019


Hi,

On 22.02.19 22:48, Niveditha Rau wrote:

> When compiling pixman with Oracle Developer Studio on Solaris, we get
> the following error:
> pixman-0.38.0/pixman/pixman-radial-gradient.c", line 114: void function
> cannot return value

> Would the attached patch be acceptable upstream?

No, because the flow is different. It'd have to be

 	if (repeat == PIXMAN_REPEAT_NONE)
 	{
 	    if (0 <= t && t <= pixman_fixed_1)
+           {
-		return write_pixel (walker, t, buffer);
+		write_pixel (walker, t, buffer);
+               return;
+           }
 	}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/pixman/attachments/20190222/72606fad/attachment.sig>


More information about the Pixman mailing list