在编译 MSP430-GCC-opensource 工具链期间、我注意到这种类型的几个警告闪烁:
e_scalb.c:在函数'__ieeee754_scalb'中: e_scalb.c:警告:溢出到转换 fromn 'long int'到'int'将值从'-65000'更改为'536'[-Woverflow]
这只是一个示例、还有其他一些示例、如中所示
newlib/libc/search/hash-c
newlib/libc/stdio/open_memstream.c:334
newlib/libc/stdlib/arc4rand.c:102
newlib/libm/common/s_round.c (第71行、16位整数常量被20个位置移位)
GCC/include/demangle.h (第58行、另一个-Wshift-count-overflow)
libstdc++-v3/libsupc++/hash-bytes.cc:97 (可能可以、因为这仅用于散列计算)
此外、还有一些指向较小整数类型警告的指针表。