In cdefs.h we have this:
/* If fortification mode, we warn about unused results of certain
function calls which can lead to problems. */
#if __GNUC_PREREQ (3,4)
# define __attribute_warn_unused_result__ \
__attribute__ ((__warn_unused_result__))
# if __USE_FORTIFY_LEVEL > 0
# define __wur __attribute_warn_unused_result__
# endif
#else
# define __attribute_warn_unused_result__ /* empty */
#endif
#ifndef __wur
# define __wur /* Ignore */
#endif
__USE_FORTIFY_LEVEL is set in features.h:
#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
&& __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0
# if _FORTIFY_SOURCE > 1
# define __USE_FORTIFY_LEVEL 2
# else
# define __USE_FORTIFY_LEVEL 1
# endif
#else
# define __USE_FORTIFY_LEVEL 0
#endif
And we are getting this warning because:
https://wiki.debian.org/Hardening
In the debian/rules file we are using:
rules:export DEB_BUILD_HARDENING=1
Now to figure out if this actually what we really want to do with building
Quagga.
donald
On Mon, Oct 12, 2015 at 3:28 PM, Paul Jakma <[email protected]> wrote:
> On Mon, 12 Oct 2015, Paul Jakma wrote:
>
> I wonder has this been already been 'fixed' upstream, and it just needs
>> time for Debian to get it, or if Fedora are removing it?
>>
>
> Hmm, Fedora has __wur on these funcs in unistd too, but I'm not getting
> the warning.
>
> regards,
> --
> Paul Jakma [email protected] @pjakma Key ID: 64A2FF6A
> Fortune:
> Sigh. I like to think it's just the Linux people who want to be on
> the "leading edge" so bad they walk right off the precipice.
> -- Craig E. Groeschel
>
_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev