<div dir="ltr"><div dir="auto">gcc has a function attribute [[gnu::warn_unused_result]] that is &quot;stronger&quot; than [[nodiscard]] in that it cannot be suppressed by cast to void (unfortunately, clang claims to support it but didn&#39;t get that part of the memo, causing confusion and frustration); that attribute has been used for some time on the interface of the GNU libc. GNU continue to use it in preference to [[nodiscard]] precisely because (when using the GNU C and C++ compilers) it cannot be suppressed by cast to void.</div><div dir="auto"><br></div><div dir="auto">Do you have an opinion on whether that implementation-specific attribute&#39;s warning should also be suppressed by [[discard]]?</div><div dir="auto"><br></div><div>Thanks, Ed</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 5, 2023, 14:03 Giuseppe D&#39;Angelo via Std-Proposals &lt;<a href="mailto:std-proposals@lists.isocpp.org" target="_blank">std-proposals@lists.isocpp.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Hoping that EWGI will reconvene in Kona, I have prepared a proposal to <br>
allow attributes on expressions, and also proposes the [[discard]] <br>
attribute. It is a draft ... of a draft -- there&#39;s still some design <br>
work to be done, possibly with EWG(I) help.<br>
<br>
<a href="https://isocpp.org/files/papers/D2992R0.html" rel="noreferrer noreferrer" target="_blank">https://isocpp.org/files/papers/D2992R0.html</a><br>
<br>
As usual, any early feedback is very much appreciated.<br>
<br>
-- <br>
Giuseppe D&#39;Angelo<br>
-- <br>
Std-Proposals mailing list<br>
<a href="mailto:Std-Proposals@lists.isocpp.org" rel="noreferrer" target="_blank">Std-Proposals@lists.isocpp.org</a><br>
<a href="https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals" rel="noreferrer noreferrer" target="_blank">https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals</a><br>
</blockquote></div>

