This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: module level flags
geoffk@geoffk.org (Geoff Keating) wrote on 01.10.02 in <jmd6quugp0.fsf@desire.geoffk.org>:
> int *ip = (int *)dp;
> I think that generally, such warnings are helpful even if they aren't
> 100% perfect. The usual reason such errors are introduced into
> programs are not that the programmer made a mistake in applying the
> appropriate rule, it's that the programmer wasn't aware that the rule
> existed. Thus, the warnings help to educate programmers, and
> hopefully they will be educated enough that they don't make the
> mistakes that the compiler can't catch.
-Wsuspicious-casts?
MfG Kai