[PATCH v4] elf: fixes compile error when both enable -Werror and -DNDEBUG
Andreas Schwab
schwab@linux-m68k.org
Wed Apr 13 12:46:35 GMT 2022
On Apr 13 2022, Florian Weimer via Libc-alpha wrote:
> Personally I would prefer __attribute__ ((unused)) directly on the
> old_offset declaration. I think it's clearer.
Perhaps even wrapping it inside #ifndef NDEBUG, like this:
#ifndef NDEBUG
off64_t old_offset =
#endif
lseek64 (fd, extension_offset, SEEK_SET);
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list