disabling warn_unused_result attribute with FORTIFY_SOURCE?
Kevin Kofler
kevin.kofler at chello.at
Thu Mar 15 14:37:53 UTC 2007
- Previous message (by thread): disabling warn_unused_result attribute with FORTIFY_SOURCE?
- Next message (by thread): rpms/qt4/devel Trolltech.conf, NONE, 1.1 qt4.macros, NONE, 1.1 .cvsignore, 1.13, 1.14 qt4.spec, 1.34, 1.35 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Ulrich Drepper <drepper <at> redhat.com> writes:
> Kevin Kofler wrote:
> > The _easy_ way to get rid of the warnings is to cast the unused results to
> > void.
>
> No, gcc won't fall for that.
I wouldn't call it "fall for that", but "be consistent with all the other
warnings about ignored values, both GCC's own 'value computed and not used' and
those emitted by other compilers for situations exactly like the
warn_unused_result one".
Kevin Kofler
- Previous message (by thread): disabling warn_unused_result attribute with FORTIFY_SOURCE?
- Next message (by thread): rpms/qt4/devel Trolltech.conf, NONE, 1.1 qt4.macros, NONE, 1.1 .cvsignore, 1.13, 1.14 qt4.spec, 1.34, 1.35 sources, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-devel-list
mailing list