![]() |
|
MISRA-C:2004 Rule 12.12: (Required) |
|
||||
![]() | |||||||
Example Code:
#include "misra.h"
#include "m2cmex.h"
#define FC (5.0F)
extern S16 test_1212( void )
{
union utag /* MISRA Violation - Rule 18.4 */
{
F32 a; /* MISRA Violation */
U32 b;
} un; /* MISRA Violation - Rule 18.4 */
un.a = FC;
u32a = un.b & 0x000000FFUL ;
return 1;
}
QAC messages that encompass this guideline:
| 3629 | Union contains member of floating type. |
|
||
(c) The Motor Industry Research Association, 2004
|
QA C Source Code Analyser 8.1.2
MISRA-C:2004 Compliance Module 3.2 © 2013 Programming Research www.programmingresearch.com |
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index | Contents |