This is the mail archive of the
mailing list for the GCC project.
Re: module level flags
firstname.lastname@example.org (Geoff Keating) wrote on 01.10.02 in <email@example.com>:
> 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.