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

From: Ed Schouten <ed_at_fxq.nl>
Date: Sat, 26 May 2007 23:56:01 +0200
* 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
_at__at_ -85,7 +85,7 _at__at_
 
 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/

Received on Sat May 26 2007 - 19:56:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC