Ok, I changed the code following to your proposals. But one doesnt work:
>
>> + timing_t res __attribute__ ((unused));
>
> use __attribute_used__ instead
bench-strcoll.c: In function âdo_benchâ:
bench-strcoll.c:334:3: error: â__used__â attribute ignored [-Werror=attributes]
timing_t res __attribute_used__;
^