Follow-up Comment #2, bug #34608 (project make): Thanks for these details. Let me propose
#define INTEGER_TYPE_SIGNED(t) !((t) -1 > 0) for a warning-less replacement then. Like it? Please re-open the bug for me, as I lack permissions to. I used the program below with # gcc -Wall -Wextra main.c && ./a.out as a test: ================================================================ #include <stdio.h> #define INTEGER_TYPE_SIGNED(t) !((t) -1 > 0) int main() { printf("signed %dn", INTEGER_TYPE_SIGNED(unsigned char)); printf("signed %dn", INTEGER_TYPE_SIGNED(signed char)); printf("signed %dn", INTEGER_TYPE_SIGNED(char)); return 0; } ================================================================ _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?34608> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make