[Regression] snd_emu10k1 doesn't work after GCC 4.2 upgrade

Ed Schouten ed at fxq.nl
Sat May 26 21:56:03 UTC 2007


* Yuriy Tsibizov <Yuriy.Tsibizov at gfk.ru> wrote:
> See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32100

So if I understand this correctly, the following patch should work
around this? Shouldn't a warning about this be raised anyway (that is:
assigning the constant value of '1' to a signed int:1)? I can't test
this patch yet, I'll take a look tomorrow.

--- src/sys/dev/sound/pci/emu10k1.c	Fri Dec 30 20:55:53 2005
+++ src/sys/dev/sound/pci/emu10k1.c	Sat May 26 23:53:38 2007
@@ -85,7 +85,7 @@
 
 struct emu_voice {
 	int vnum;
-	int b16:1, stereo:1, busy:1, running:1, ismaster:1;
+	unsigned int b16:1, stereo:1, busy:1, running:1, ismaster:1;
 	int speed;
 	int start, end, vol;
 	int fxrt1;	/* FX routing */

-- 
 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070526/d2305443/attachment.pgp


More information about the freebsd-current mailing list