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

            Bug ID: 113298
           Summary: RFE: allow suppressing warnings for void * conversions
                    with -fpermissive
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hpa at zytor dot com
  Target Milestone: ---

-fpermissive downgrades some errors to warnings, but there doesn't seem to be
any -W options to suppress those warnings, and -fpermissive itself is a fairly
wide switch.

Having individual -W options for the various -fpermissive events would allow
the programmer to pick what extensions to allow unconditionally, which to warn
for, and which to error out for (-Werror=).

Allowing void * to be converted to a pointer to a POD structure is particularly
useful in the process of moving a project from C to C++.

Reply via email to