Remove misleading XOR

tbaeder@redhat.com tbaeder@redhat.com
Wed Feb 17 10:12:15 GMT 2021


Hi,

I'm mainly leaving this patch here to discuss what to do about it.
Clang complains because of -Wxor-used-as-pow. So of course one
possibility is to use -Wno-xor-used-as-pow. It also prints
'0x2 ^ NO_RESIZING' as an alternative to silence the warning. Given the
comment just above the changed line, I think the 0x2 version is better
than what I have in the patch now, since it still uses NO_RESIZING. But
I'm open for suggestions on how to keep the code as clear as possible.


Thanks,
Timm




More information about the Elfutils-devel mailing list