[Libosinfo] [PATCHv2 3/4] Use 'unsigned int' rather than enum type for flag param

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Apr 3 16:09:06 UTC 2013


On Wed, Apr 3, 2013 at 6:47 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> Setting an enum variable to a value that is not part of the enum
> (as will happen when passing a bitwise-or flag param to
> osinfo_product_foreach_related) is undefined behaviour in C.
> ---

ACK. After all these years, one would think an important thing like
size of enum is dictated by latest C standard.

--
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the Libosinfo mailing list