![]() |
![]() |
0626 | ![]() |
||||
![]() | |||||||
| Explicitly undefined | REFERENCE - ISO:C90-6.1.2.6 Compatible Type and Composite Type | ||||||
This global object or function has been declared previously in a different scope but the 2 declarations are different. This will result in undefined behavior. For example:
/*PRQA S 2017,2211,3205,3221,3222,3408,3447 ++*/
extern void foo1(void)
{
extern int glob;
extern void gf1(void);
}
extern void foo2(void)
{
extern long glob; /* Message 0626 */
extern void gf1(int x); /* Message 0626 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |