[previous] 3308 [next] 'static %s()' has been declared but no definition has been provided. This is redundant.
Declarations and Definitions

This function declaration has no corresponding function definition within the translation unit and is therefore redundant.

If you are not planning to define the function at a later time, it would be wise to remove this declaration.

For example:


/*PRQA S 3219,3408 ++*/

static void f1(void);    /* Message 0554 - Constraint Error - not defined but called       */
static void f2(void);    /* Message 3308 - Redundant        - not defined and never called */

extern void foo(void)
{
    f1();
}


No MISRA C:2012 Rules applicable to message 3308


See also:

QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents