On 01/01/2018 05:50 PM, Martin Sebor wrote:
> Among the recent -Wattributes enhancements is to diagnose
> declarations of void functions with attribute const or pure.
> Declaring a void function const or pure means that calls to
> the function have no effect and could be (and, with
> optimization,
Among the recent -Wattributes enhancements is to diagnose
declarations of void functions with attribute const or pure.
Declaring a void function const or pure means that calls to
the function have no effect and could be (and, with
optimization, are) eliminated. Thus the attribute on such
a functi