Date: Wed, 25 Jul 2007 10:46:29 -0500 (CDT) From: Erik Greenwald <erik@smluc.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: erik@math.missouristate.edu Subject: ports/114903: [Maintainer Update] devel/ruby-rudl fix for invalid lvalue error with gcc4 Message-ID: <20070725154629.5B128434002@sinistar.bluecows.com> Resent-Message-ID: <200707251620.l6PGK1DM002749@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 114903 >Category: ports >Synopsis: [Maintainer Update] devel/ruby-rudl fix for invalid lvalue error with gcc4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 25 16:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Erik Greenwald >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD vidar.br0kenland.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jan 13 11:46:43 EST 2007 root@vidar.br0kenland.org:/usr/obj/usr/src/sys/VIDAR i386 >Description: fixes the lvalue error when using gcc4 >How-To-Repeat: >Fix: --- devel_ruby-rudl.patch begins here --- Index: devel/ruby-rudl/files/patch-flxplay.c =================================================================== RCS file: devel/ruby-rudl/files/patch-flxplay.c diff -N devel/ruby-rudl/files/patch-flxplay.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ devel/ruby-rudl/files/patch-flxplay.c 25 Jul 2007 15:44:25 -0000 @@ -0,0 +1,13 @@ +--- flxplay.c.orig Wed Jul 25 11:40:05 2007 ++++ flxplay.c Wed Jul 25 11:40:27 2007 +@@ -42,8 +42,8 @@ + int lastFrameTicks; + } FLC; + +-#define ReadU16(tmp1, tmp2) (Uint16)*(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2); +-#define ReadU32(tmp1, tmp2) (Uint32)*(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2)); ++#define ReadU16(tmp1, tmp2) *(Uint16 *)(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2); ++#define ReadU32(tmp1, tmp2) *(Uint32 *)(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2)); + + + --- devel_ruby-rudl.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070725154629.5B128434002>