[previous] 2007 [next] 'auto' does not add information to a declaration, and is best avoided.
Declarations and Definitions

This declaration includes the keyword 'auto', signifying automatic storage duration. This keyword is obsolete and is effectively redundant. Removing it will have no effect on the behaviour of this declaration.

For example:


/*PRQA S 2017,3205,3408 ++*/

extern void foo(void)
{
   auto int i;                  /* Message 2007 */
}

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