<--- FIXED ---> ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:3:1: error: Function 'BareFunctionShouldGetStatic()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 1: #include "testheader.h" 2: > 3: void BareFunctionShouldGetStatic(void) { } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4: 5: extern void ExternFunctionShouldNotGetStatic(void) { } ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:13:1: error: Function 'StaticFunctionPreDeclShouldNotGetStatic()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 11: 12: // this should get static! > 13: void StaticFunctionPreDeclShouldNotGetStatic(void) { } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14: 15: extern void ExternFunctionPreDeclShouldNotGetStatic(void); ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:19:1: error: Function 'BareFunctionPreDeclShouldGetStatic()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 17: void ExternFunctionPreDeclShouldNotGetStatic(void) { } 18: > 19: void BareFunctionPreDeclShouldGetStatic(void); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20: 21: void BareFunctionPreDeclShouldGetStatic(void) { } ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:21:1: error: Function 'BareFunctionPreDeclShouldGetStatic()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 19: void BareFunctionPreDeclShouldGetStatic(void); 20: > 21: void BareFunctionPreDeclShouldGetStatic(void) { } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22: 23: // declaration in testheader has "extern" ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:45:1: error: Function 'BarePointerShouldGetStatic()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 43: } 44: > 45: char *BarePointerShouldGetStatic() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 46: { 47: return nullptr; ./src/sys/tests/linter/testStaticFunctionCandidates.cxx:98:1: error: Function 'silence_warnings()' does not appear to be used anywhere outside of testStaticFunctionCandidates.cxx, and can be made static [-fstatic-function-candidate]: 96 : 97 : // ironically enough, this will get static > 98 : void silence_warnings(void) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 99 : { 100: (void)StaticFunctionShouldNotGetStatic; <--- LEFT --->