[previous] 0777 [next] [U] External identifier does not differ from other identifier(s) (e.g. '%s') within the specified number of significant characters.
Explicitly undefined REFERENCE - ISO:C90-6.1.2 Identifiers - Implementation Limits

This identifier with external linkage is not distinguishable from other identifiers with external linkage within the parameters specified by the -XN and -XC options.

The -XN and -XC options should be configured to reflect (at least) the limitations of the implementation; but they may also be used to apply additional restriction. So for example:

Message 0777 is generated when identifiers cannot be distinguished within the limits imposed by these 2 options.

For example:


/*PRQA S 553,776,2017,3210,3408,3447 ++*/
/************************/
/* OPTIONS: -XN 10 -XC+ */
/************************/

extern int a234567890;                       /*      */
extern int a234567890a;                      /* 0777 */

extern int b234567890;                       /*      */
extern int B234567890;                       /* 0777 */


MISRA-C:2004 Rules applicable to message 0777:

Rule  1.2  (Required) No reliance shall be placed on undefined or unspecified behaviour.
Rule  5.1  (Required) Identifiers (internal and external) shall not rely on the significance of more than 31 characters.


See also:

QA·C Source Code Analyser 8.1
MISRA-C:2004 Compliance Module 3.2
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA-C:2004 Rule Index Contents