Community
Participate
Working Groups
Build Identifier: CDT 8.0 Testcode: static inline void add( float * f) { f += 1.0F; } static inline void add( int * f) { f += 1; } template<typename T> static inline void Myadd( T* Val) { add( Val); } int main() { int a = 5; MyAdd(&a); return 0; } CODAN reports "Unused static function" for both static functions add. Reproducible: Always
Nathan, you looked at this checker recently. Would be this one easy to fix?
(In reply to comment #1) > Nathan, you looked at this checker recently. Would be this one easy to fix? I will have a look. This has been annoying me, too.
Turned out to be quite straightforward. Patch: https://git.eclipse.org/r/#/c/14680/
Fixed in master.