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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #6 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to sandra from comment #2)
> The option that controls the warning for casts between function and data
> pointers is -Wpedantic.  It's not explicitly documented as doing that, but
> the description of the option starts out:  "Issue all the warnings demanded
> by strict ISO C and ISO C++; diagnose all programs that use forbidden
> extensions..."

In fact that wording documents it as *not* doing that. This is a permitted
extension, ISO C requires no diagnostic for this. This was reported as bug
#83584 which IMHO was wrongly closed.

Reply via email to