![]() |
![]() |
3308 | ![]() |
||||
![]() | |||||||
| 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();
}
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |