Skip to contentSkip to conversation

virmidi: use unsigned 1-bit fields

PATCH Applied Randy.Dunlap 2 participants 2 messages Feb 16, 2005 – Feb 17, 2005 Sound

lore
Share & tools
lore
#0 lore raw

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
diff -Naurp ./include/sound/seq_virmidi.h~sound_virmidi_bool ./include/sound/seq_virmidi.h
@@ -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

Applied
#1 lore raw

At 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 bitfield

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