https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82790
--- Comment #2 from Eugene Zelenko <eugene.zelenko at gmail dot com> --- Just a little bit of background: a lot of legacy C code was converted to C++, so a lot of type casts were necessary to compile it properly. Gradually char * are converted to const char *, so -Wuseless-cast will be helpful for refactoring.