![]() |
![]() |
3600 | ![]() |
||||
![]() | |||||||
| K+R compatibility | REFERENCE - ISO:C90-6.3.3.3 Unary Arithmetic Operators | ||||||
A unary '+' operator is being used. This operator was not supported in early versions of the C language and it only exists to provide symmetry with the unary '-' operator. Be aware that if the "-k+r u" option is enabled, message 3600 is not generated and message 0349 is generated instead. The two messages are functionally equivalent. For example:
/*PRQA S 2017,2213,3132,3206,3211,3408,3674 ++*/
int swt[][3] =
{
{ -1,-1,+1 }, /* Message 3600 */
{ -1,-1,-1 },
{ +1,+1,+1 } /* Message 3600 3600 3600 */
};
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |