[Bug c/86418] warn about mismatch in type between argument and parameter type for declaration without prototype

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 6 18:20:00 GMT 2018


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-10-06
     Ever confirmed|0                           |1

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  My preference would be to resolve pr82922 and diagnose all calls to
functions without a prototype.  Short of that, this could be handled by saving
the type of the first call to a function without a prototype in a translation
unit, comparing it to the type of each subsequent call, and warning if they
don't match.


More information about the Gcc-bugs mailing list