![]() |
![]() |
0346 | ![]() |
||||
![]() | |||||||
| K+R compatibility | |||||||
One of the keywords 'signed', 'const' or 'volatile' is being used. These keywords were not supported in early versions of the C language and would have been treated just as normal identifiers. Be aware that message 0346 is only generated for 'const' or 'volatile' when the "-k+r t" option is enabled, and it is only generated for 'signed' when the "-k+r i" option is enabled, Notice also that when message 0346 is generated, message 3602 will not be generated. However, the functionality of message 3602 is slightly different because it is only generated on the first occurrence of each of these keywords within the translation unit. For example:
/*PRQA S 553,2017,3206,3210,3447 ++*/
/*****************************
* OPTIONS: -k+r it
****************************/
extern const unsigned int ga1; /* Message 0346 */
extern const unsigned int ga2; /* Message 0346 */
extern volatile unsigned int gb1; /* Message 0346 */
extern volatile unsigned int gb2; /* Message 0346 */
extern signed int gc1; /* Message 0346 */
extern signed int gc2; /* Message 0346 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |