|
From: | Pádraig Brady |
Subject: | -Werror=suggest-attribute=pure breakage |
Date: | Fri, 08 Jul 2011 11:47:39 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
$ gcc --version gcc (GCC) 4.6.0 20110509 (Red Hat 4.6.0-7) $ make test.c:95:1: error: function might be candidate for attribute 'pure' if it is known to return normally [-Werror=suggest-attribute=pure] As far as I can see the advance() function is not pure as it updates the global variable 'pos'. ? cheers, Pádraig.
[Prev in Thread] | Current Thread | [Next in Thread] |