MISRA Discussion Forums
MISRA Discussion Forums
>
MISRA C
>
MISRA-C: 2004 rules
>
6.18 Structures and Unions
> 18.4 Unions shall not be used...
Full Version:
18.4 Unions shall not be used...
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
rahul_mishra
13-11-2006, 12:58 PM
Is it that unions can be declared or defined but not used? i.e.; Do we need to flag a violation even on the declaration or definition of the union? or is it only on the usage of it.
misra-c
09-05-2007, 04:56 PM
Tools are free to warn on either declaration or use.
MISRA Discussion Forums
>
MISRA C
>
MISRA-C: 2004 rules
>
6.18 Structures and Unions
> 18.4 Unions shall not be used...