![]() |
![]() |
0778 | ![]() |
||||
![]() | |||||||
| ISO C90 Conformance limits | REFERENCE - ISO:C90-6.1.2 Identifiers - Implementation Limits | ||||||
The translation limits specified in the ISO:C Standard define a minimum set of conditions which a compiler must support in order to be described as conforming. In practice, compilers will often tolerate code which exceeds these minimal requirements. However, in order to ensure portability, it is advisable to avoid writing code that assumes a level of compiler capability which may not always be supported. Message 0778 identifies the situation where identifiers within the same name space and the same scope are not unique within the first 31 characters, the minimum requirement of the ISO:C90 Standard. In practice, compilers will often be capable of distinguishing identifiers which do not conform to this requirement but such code is not strictly conforming. If strict ISO conformance is not required this message should be suppressed. The -namelength option and message 0779 can be used to enforce a lower or higher number of significant characters. For example:
/*PRQA S 553,779,2017,3207,3408,3447 ++*/
static int a23456789012345678901234567890x;
static int a23456789012345678901234567890y;
static int b234567890123456789012345678901x;
static int b234567890123456789012345678901y; /* Message 0778 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |