4 ms·
At least clang and gcc will also warn about unused static functions (included in -Wall though). IMHO that's a good reason to use static-by-default (and also not
by flohofwoe 6y ago
At least clang and gcc will also warn about unused static functions (included in -Wall though). IMHO that's a good reason to use static-by-default (and also not to split a project into a myriad of tiny source files, since this usually means less functions can be made static). Of course in the end LTO will take care of unused functions project-wide, but you'll not get a warning about stale functions that way.