This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
embed.fnc: Add caution about R flag
authorKarl Williamson <khw@cpan.org>
Fri, 23 Aug 2019 18:38:50 +0000 (12:38 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 26 Aug 2019 18:00:19 +0000 (12:00 -0600)
embed.fnc

index 02b2ea3..c9230aa 100644 (file)
--- a/embed.fnc
+++ b/embed.fnc
 :
 :   R  Return value must not be ignored (also implied by 'a' and 'P' flags):
 :
+:      gcc has a bug (which they claim is a feature) in which casting the
+:       result of one of these to (void) doesn't silence the warning that the
+:      result is ignored.
+:
 :        proto.h: add __attribute__warn_unused_result__
 :
 :   r  Function never returns: