Hello, In addition to already posted/committed Wunused I have a bunch of patches which work around unused vars by adding attribute unused. Rationale was: either it was unclear whether the assignment might have side-effects or there was something that should have been done (e.g. this case) with the variable. Let me know if this is acceptable approach. Thank you, Aleksandar Ristovski QNX Software Systems ChangeLog: * corefile.c (reopen_exec_file): Add unused attribute to res, add FIXME comment for future cleanup.