To what is _X_RESTRICT_KYWD expanded for you?
Probably to "restrict". I replaced the macro manually with "__restrict__" and the empty string. Both versions were accepted by the compiler. Only with "restrict" I got the error.
But I have no idea if the definition of X_RESTRICT_KYWD in X11/Xfuncproto.h has to be fixed for GCC 4.7.0, or what else the correct solution would be.
-- Jörn Clausen joern.clausen%uni-bielefeld.de@localhost Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/ Universität Bielefeld