The C Preprocessor: Traditional warnings |
---|
Previous: Traditional miscellany, Up: Traditional Mode [Contents][Index]
You can request warnings about features that did not exist, or worked differently, in traditional C with the -Wtraditional option. GCC does not warn about features of ISO C which you must use when you are using a conforming compiler, such as the ‘#’ and ‘##’ operators.
Presently -Wtraditional warns about:
UINT_MAX
may well be defined as 4294967295U
, but
you will not be warned if you use UINT_MAX
.
You can usually avoid the warning, and the related warning about constants which are so large that they are unsigned, by writing the integer constant in question in hexadecimal, with no U suffix. Take care, though, because this gives the wrong result in exotic cases.
Previous: Traditional miscellany, Up: Traditional Mode [Contents][Index]