[previous] 0750 [next] A union type specifier has been defined.
Arrays, structures, unions and bit-fields

Message 0750 is generated whenever a union type is defined. Some coding standards advocate that unions should be avoided.

For example:


/*PRQA S 553,2017,3132,3211,3408 ++*/

union UTA
{                                      /* Message 0750 */
    unsigned short us;
    unsigned char  uc[2];
};

union UTA una;                         /* Message 0759 */


MISRA C:2012 Rules applicable to message 0750:

Rule-19.2  (Advisory) The union keyword should not be used


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents