Per Jessen wrote:
I'm rebuilding from some code I wrote in 2010 and compiled with gcc 4.2.1. Compiling now with gcc 7.3.1 I get e.g. this warning:
/usr/include/aio.h:149:12: note: expected ‘struct aiocb * const* restrict’ but argument is of type ‘struct aiocb *’
afaict, this about what the compiler is allowed to optimize and what not, can anyone elaborate ?
okay, it was less complex than it looked. The argument wanted is an array of pointers, i.e. **x and I had provied just a pointer. Still not sure what "const* restrict" means .... :-) -- Per Jessen, Zürich (15.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-programming+owner@opensuse.org