[previous] 1302 [next] '%s()' must be declared before use in C++.
Functions REFERENCE - ISO:C90-6.3.2.2 Function Calls - Semantics

A function is being used for which there is no previous definition or declaration, and so in accordance with the ISO:C Standard an implicit declaration is being inserted. It is not good practice to call a function without declaring it first. ISO:C90 allows this practice, but it is not permitted in either C99 or C++.

Message 1302 is functionally equivalent to message 3335.

For example:


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

int foo(void)
{
    int r;

    r = func(0);                  /* Messages 1302 and 3335 */

    return r;
}

See also:

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