Messages in this thread | | | Date | Sat, 26 Jun 2021 09:44:25 +0300 | From | Alexey Dobriyan <> | Subject | Re: [PATCH] ELF: add and use SUPRESS_WARN_UNUSED_RESULT\ |
| |
On Fri, Jun 25, 2021 at 11:57:21PM +0200, Miguel Ojeda wrote: > On Fri, Jun 25, 2021 at 11:10 PM Alexey Dobriyan <adobriyan@gmail.com> wrote: > > > > This is natural place. If you're supressing WUR, then the WUR macro > > itself is defined implying that the header has been included. > > I am not sure I understand -- I guess you are saying that your macro > is only ever needed if `__must_check` is defined, which is what I > meant by "related". > > But this header was intentionally created to untangle others by > keeping only attributes here.
Sure. But then developer needs to include another header to use SUPRESS_WUR. As posted, attribute and its suppressor go hand to hand.
| |