Skip to contentSkip to conversation

Minor issue: compiler warning on rtdm.h

Xenomai-core Johan Borkhuis 2 participants 2 messages Jul 17, 2007

lore
Share & tools
lore
#0 lore raw

When compiling with an extended warnings I get the following warning:

/nfsroot/common/usr/xenomai/include/rtdm/rtdm.h: In function 'rt_dev_sendto':
/nfsroot/common/usr/xenomai/include/rtdm/rtdm.h:323: warning: missing initializer /nfsroot/common/usr/xenomai/include/rtdm/rtdm.h:323: warning: (near initialization for 'msg.msg_flags')

The structure-type msghdr has 7 elements, but the initializer only has 6 elements.

Kind regard,
Johan Borkhuis

#1 lore raw
Quoted 11 lines · Johan Borkhuis

When compiling with an extended warnings I get the following warning:

/nfsroot/common/usr/xenomai/include/rtdm/rtdm.h: In function 'rt_dev_sendto':
/nfsroot/common/usr/xenomai/include/rtdm/rtdm.h:323: warning: missing initializer /nfsroot/common/usr/xenomai/include/rtdm/rtdm.h:323: warning: (near initialization for 'msg.msg_flags')

The structure-type msghdr has 7 elements, but the initializer only has 6 elements.

Yeah, known problem under pedantic compiler switches. But it's already fixed in upcoming 2.4, I was likely just to lazy to back-port it.

Thanks nevertheless,
Jan