Jirka Hanika <[EMAIL PROTECTED]> writes: > For example I'll try to upgrade the "unused variable" warning avoidance > code to something like > > if (((int)argv) * ((int)argv) < 0 || argc < 0) printf("");
conftest.c: In function ‘main’: conftest.c:5: warning: cast from pointer to integer of different size conftest.c:5: warning: cast from pointer to integer of different size conftest.c:5: warning: zero-length printf format string conftest.cc: In function ‘int main(int, char**)’: conftest.cc:5: error: cast from ‘char**’ to ‘int’ loses precision conftest.cc:5: error: cast from ‘char**’ to ‘int’ loses precision conftest.cc:5: warning: zero-length printf format string 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 44D5 214B 8276 4ED5 "And now for something completely different."