This is the mail archive of the
mailing list for the GCC project.
Re: [using gcc book] ch10.11 Certain Changes We Don't Want to Make
Chris Devers <email@example.com> writes:
> C contains many standard functions that return a value that most
> programs choose to ignore. One obvious example is printf. Warning
> about this practice only leads the defensive programmer to clutter
> programs with dozens of casts to void. Such casts are required so
> frequently that they become visual noise. Writing those casts
> becomes so automatic that they no longer convey useful information
> about the intentions of the programmer.
> I think this latter version is the clearest yet. Thoughts? This seems
> close enough to the mark that I'll paste it into the file, and can revise
> it further if anyone points out an error or misphrasing of mine.
Sounds great to me.
Russ Allbery (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>