------- Comment #1 from rguenth at gcc dot gnu dot org 2006-02-15 10:36 ------- With -Wconversion you get
t.c:5: warning: passing argument 1 of toLongLong with different width due to prototype though -Wconversion is neither in -Wall nor -Wextra. I see you filed against C++, which doesn't warn here, but we have a bug for a similar case already. Also the C diagnostic could be improved in the case of a widening sign conversion, because that is more likely an error than a non-widening sign conversion. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |26167 Severity|normal |enhancement Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |diagnostic Last reconfirmed|0000-00-00 00:00:00 |2006-02-15 10:36:07 date| | Summary|no warning for implicit type|-Wconversion fails to detect |conversion |signedness change during | |widening conversion http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26298