Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2007 23:56:01 +0200
From:      Ed Schouten <ed@fxq.nl>
To:        Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
Cc:        current@freebsd.org
Subject:   Re: [Regression] snd_emu10k1 doesn't work after GCC 4.2 upgrade
Message-ID:  <20070526215601.GT23313@hoeg.nl>
In-Reply-To: <009501c79fdf$19e25880$1e00000a@hhp.local>
References:  <009501c79fdf$19e25880$1e00000a@hhp.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--nF5CeAc4QNWHTmva
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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 @@
=20
 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 */

--=20
 Ed Schouten <ed@fxq.nl>
 WWW: http://g-rave.nl/

--nF5CeAc4QNWHTmva
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGWKzx52SDGA2eCwURAlmBAJ4lKGbYTaoLbdBn0oY5WMB0L6lf0ACfT4aN
DmFuZVcSQbosr9spUs77Uv0=
=YuBB
-----END PGP SIGNATURE-----

--nF5CeAc4QNWHTmva--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070526215601.GT23313>