[previous] 3002 [next] Defining '%s()' with an identifier list and separate parameter declarations is an obsolescent feature.
Functions REFERENCE - ISO:C90-6.9.5 Future Language Directions

This is an old style function definition containing an identifier-list and separate parameter declarations. This is an obsolescent language feature and is not recommended. (It is also not supported in C++). Using ISO prototype syntax to declare and define function interfaces provides much better type checking; but be careful not to mix the 2 styles.

Messages 3002 and 1304 are functionally identical.

For example:


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


extern int foo1(p)              /* Message 3002 and 1304 - "old style" */
int p;
{
    return 1;
}

extern int foo2(int p)          /* ISO style header - "new style"      */
{
    return 1;
}

See also:

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