[imapfilter-devel] Compiler Warnings
David DeSimone
fox at verio.net
Sat Aug 5 19:45:17 EEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Skibbe <mskibbe at suse.de> wrote:
>
> > Yes see above. I test it and i get errors then i fix it. but your
> > suggestion to cast the return variables to void is better than my
> > idea.
>
> but this do not resolve the warnings :-(
I suppose the reason gcc is set to flag these as warnings is that it is
not all that good a programming practice to call functions like fgets()
or fgetc() and ignore the return value. The main function of the return
value is to check for EOF on the input file, and do something reasonable
with that information (like return an error upstream). But that
requires more coding than just a one-line fix; it may require some
restructuring of code.
- --
David DeSimone == Network Admin == fox at verio.net
"It took me fifteen years to discover that I had no
talent for writing, but I couldn't give it up because
by that time I was too famous. -- Robert Benchley
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFE1MsdFSrKRjX5eCoRArHNAJ4hIZF3eHx5+wX5DIjJ6K9BPAP3TQCglAJh
Pd3ddw7Yxx+st/x84SNDLdM=
=bohj
-----END PGP SIGNATURE-----
More information about the Imapfilter-devel
mailing list