There are cases where a comparison is only on 32 bit architectures
always true/false (if longs are involved).
There are cases where a #define is set that might be set differently
under certain circumstances:
<-- snip -->
#define MAX_VALUE 10000
u8 tmp;
if (tmp > MAX_VALUE)
return -ESOMEERROR;
<-- snip -->
These are cases where the warning is just noise. But this new warning
already found several bugs, there are several places where I sent
patches for things like:
<-- snip -->
u8 i;
for (i = 0; i <= 0xFF; i++)
do_something;
<-- snip -->
In these cases the warning found an actual bug.
Is there any way to tell gcc to disable such warnings locally?
cu
Adrian
--"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/