[previous] 0606 [next] Object '%s' is declared using typedefs which are different to those in a previous declaration.
Declarations and Definitions REFERENCE - ISO:C90-6.1.2.6 Compatible Type and Composite Type

This object has been declared in a slightly different way in an earlier declaration. The declarations are "type compatible" but not "typedef" compatible.

This is not recommended practice although it is permitted in the C standard.

For example:


/*PRQA S 2017,3210,3211,3447,3448,3603 ++*/

typedef int INT;
typedef int TMT;

extern int ga;
extern INT ga = 1;                      /* Message 0606 */

extern int gb;
extern INT gb ;                         /* Message 0606 */

extern INT gc;
extern TMT gc ;                         /* Message 0606 */

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