Dominik Vogt <fvwm-workers@fvwm.org> writes: > On Wed, Sep 18, 2002 at 10:30:52AM +0200, fvwm-workers wrote: > [snip] > > How about this: write a small test program that issues lots of > > warnings with -Wall and AC_TRY_COMPILE it. When that fails, > > configure bugs out with an error message. > > This is the test code I came up with. To the best of my > knowledge, every ANSI C compiler should be able to compile it, but > not without warnings:
Solaris 8 (yes, its an ANSI compiler): fork> cc dominik.c "dominik.c", line 6: left operand must be modifiable lvalue: op "=" "dominik.c", line 6: left operand must be modifiable lvalue: op "=" "dominik.c", line 11: warning: improper pointer/integer combination: op "=" "dominik.c", line 12: warning: assignment type mismatch: pointer to char "=" const pointer to const int cc: acomp failed for dominik.c fork> cc -V cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15 HPUX11.11: peterpan> cc dominik.c cc: "dominik.c", line 6: error 1549: Modifiable lvalue required for assignment operator. cc: "dominik.c", line 6: error 1549: Modifiable lvalue required for assignment operator. cc: "dominik.c", line 11: warning 526: Pointer implicitly converted to integral value in assignment. cc: "dominik.c", line 12: warning 611: Qualifiers are not assignment-compatible. peterpan> cc -V dominik.c cpp.ansi: HP92453-01 B.11.11.02 HP C Preprocessor (ANSI) ccom: HP92453-01 B.11.11.02 HP C Compiler AIX 5.1: dumbo> cc dominik.c "dominik.c", line 6.18: 1506-068 (W) Operation between types "const int* const" and "unsigned char" is not allowed. "dominik.c", line 6.16: 1506-025 (S) Operand must be a modifiable lvalue. "dominik.c", line 11.6: 1506-068 (W) Operation between types "unsigned char" and "const int*" is not allowed. "dominik.c", line 12.5: 1506-068 (W) Operation between types "unsigned char*" and "const int* const" is not allowed. dumbo> cc -V VisualAge C++ Professional / C for AIX Compiler, Version 5 -- Dan Espen E-mail: [EMAIL PROTECTED] 444 Hoes Lane Room RRC 1C-214 Phone: (732) 699-5570 Piscataway, NJ 08854 -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]