virmidi: use unsigned 1-bit fields
PATCH 1/1 virmidi: use unsigned 1-bit fields
Can't have a boolean and a sign bit in 1 bit.
Fix (14) boolean/bitfield sparse warning:include/sound/seq_virmidi.h:41:16: warning: dubious one-bit signed bitfield
diffstat:=
include/sound/seq_virmidi.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
include/sound/seq_virmidi.h renamed from include/sound/seq_virmidi.h~sound_virmidi_bool +1 -1
@@ -38,7 +38,7 @@ typedef struct _snd_virmidi {int seq_mode;int client;int port; - int trigger: 1; + unsigned int trigger: 1;snd_midi_event_t *parser;snd_seq_event_t event;snd_virmidi_dev_t *rdev;
---
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Takashi Iwai
AppliedAt Wed, 16 Feb 2005 15:55:07 -0800,
Quoted 7 lines · Randy.Dunlap
Can't have a boolean and a sign bit in 1 bit.
Fix (14) boolean/bitfield sparse warning:
include/sound/seq_virmidi.h:41:16: warning: dubious one-bit signed bitfieldSigned-off-by Randy Dunlap <[email protected]>
Thanks, applied to CVS.
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click