[previous] 3629 [next] Union contains member of floating type.
Declarations and Definitions

A union type is being defined with a member of floating type.

Unions are frequently used as a way of equivalencing different data types. For example byte information can be extracted from or packed into larger integer types.

Manipulating the underlying representation of floating point data is not recommended and message 3629 therefore identifies any union declaration which contains members of floating type.

For example:


/*PRQA S 553,750,2017 ++*/

union UT
{
    double        dbm;                  /* Message 3629 */
    unsigned long ulx;
};


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