[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pure and const function attributes
From: |
Paul Eggert |
Subject: |
Re: pure and const function attributes |
Date: |
Thu, 30 Apr 2020 17:46:11 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/30/20 6:37 AM, Marc Nieper-Wißkirchen wrote:
> P.S.: It would also be helpful so that warnings coming from
> "-Wsuggest-attribute=pure" can be handled for the GCC without
> affecting other compilers.
So, something like the attached file for modules/attribute-gcc? You can put
ATTRIBUTE_PURE in the declaration for a function, and for non-GCC compilers it
expands to nothing.
attribute-gcc
Description: Text document