$ 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.

Reply via email to