TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.7.5.3.cChecked automatically with code checker

Synopsis:Avoid unused static functions
Language:C
Severity Level:8
Category:Declarations


Description:

Static functions have file scope. If they are not called somewherein the same file as they are defined, then they are dead and can be removed.

Example:

// file doesn't contain any call to getstatus
static int getstatus(int index) {
}