[PATCH] support: Add TEST_COMPARE macro
Florian Weimer
fweimer@redhat.com
Mon Nov 27 18:06:00 GMT 2017
On 11/27/2017 07:00 PM, Paul Eggert wrote:
> Come to think of it, perhaps it would be easier to add -Wsign-compare
> only for TEST_COMPARE, and remove all the other gorp. What we're trying
> to do here, is to have the effect of -Wsign-compare. Surely it's better
> to do this check at compile-time with the compiler's help, rather than
> try to dodge the compiler and do the check at run-time.
I'm not certain about that at allâthe *types* could well differ in
signedness between architectures (as it is common for char). This is
the main reason why I only want to test the values.
Florian
More information about the Libc-alpha
mailing list