Compiler optimalisations: use GNU attributes to reduce warnings about unused parameters and const-functions