Andreas Schwab wrote:
> Try -Wextra.
Ah thanks! I have already lost time several times due to this
almost invisible mistake and I didn't know -Wextra would catch it.
However, it seems to only work for the C compiler, not for C++.
(Using GCC 3.4.4)
(Oops, sorry Andreas, I actually meant to only
Ivan Novick <[EMAIL PROTECTED]> writes:
> How come the following code would not be considered a Warning?
Try -Wextra.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D
Ivan Novick wrote:
Hello,
How come the following code would not be considered a Warning?
Surely there is no possible way this would be intentional?
if (x<4);
x++;
When you consider macro expansion, it could:
#if SIZEOF_LONG == 4
#define WARN_FOR_BIG_VALUES \
printf ("hey, x is too