https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80729

            Bug ID: 80729
           Summary: [GCC 6, 7] -Wuseless-cast doesn't detect casting
                    string literals to (const char*)
           Product: gcc
           Version: 6.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eugene.zelenko at gmail dot com
  Target Milestone: ---

-Wuseless-cast doesn't detect casting string literals to (const char*), like

(const char*) "string"

I tried GCC 6.3 and 7.1 on C++98/03 code base.

Reply via email to