Hi Christian, > I tried compiling with /opt/developerstudio12.6/bin/CC on gcc211 > (basically the newer version of Sun CC, I think), and am getting > warnings like this: > > "../gnulib/import/../../gnulib/config.h", line 1346: Warning > (Anachronism): Attempt to redefine __restrict__ without using #undef. > > Fairly harmless I think but it does show up for every file that > includes config.h...
We try to achieve warning-free builds on glibc systems, because that is the platform on which most developers look at the compilation logs, and because with GCC we can enable useful warnings and disable less useful warnings. Warnings on other platforms catch our attention if they point to potentially dangerous code. This is why I looked at your previous report [1]. Having said that, if you want to fix this warning: Good patches are welcome. Bruno [1] https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html