[previous] 0759 [next] An object of union type has been defined.
Arrays, structures, unions and bit-fields

Message 0759 is generated whenever an object of 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 */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents