This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/32185] unused result warnings and -werror
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jun 2007 02:00:38 -0000
- Subject: [Bug other/32185] unused result warnings and -werror
- References: <bug-32185-13408@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-06-03 02:00 -------
>Could the check in the code be moved futher up so the compiler can see that the
> checking is being done?
Not if glibc is marking the functions as warn_unused_result. Also the
front-end would need some flow analysis to figure out if a warning is needed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32185