Re: disabling warn_unused_result attribute with FORTIFY_SOURCE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Ulrich Drepper napsal(a):
> Matthew Miller wrote:
>> My google-fu is failing me; I can't find any documentation on this.
>> Apparently, building with -Wp,-D_FORTIFY_SOURCE=2 results in the
>> warn_unused_result attribute being added to every (? or maybe just many)
> 
> Only cases without valid cases where ignoring the value might be correct.
> 
>> fuction. In turn, this makes many perfectly good programs spit out hundreds
>> of warnings. I'm not sure this is necessarily good.
> 
> Fix the code.  All those warnings are problems.
How about fwrite ()?  What's wrong with just using ferror () before
closing the file?

Thanks for your time,
	Mirek

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux