From: Joerg S. a. M. <rus...@he...> - 2009-03-30 03:41:22
|
> On linux it's very easy to test compiling in ANSI C, with the new build > system > > ../configure [whatever options you use] CFLAGS="-ansi" > Also, add '-pedantic' to CFLAGS if you want to cause > non-comformity warnings to turn into errors. Not really: $man gcc ... | -ansi ... | The -ansi option does not cause non-ISO programs to be rejected | gratuitously. For that, -pedantic is required in addition to | -ansi. ... | -pedantic ... | Some users try to use -pedantic to check programs for strict ISO C | conformance. They soon find that it does not do quite what they | want: it finds some non-ISO practices, but not all | -pedantic-errors | Like -pedantic, except that errors are produced rather than | warnings. So you better use something like ../configure [whatever options you use] CFLAGS="-ansi -pedantic-errors" so long MUFTI -- Anwendungen das "Works with Windows Vista" Logo von verdient haben Unternehmen Produktname Version IBM Corporation. DB2: druecken Sie Edition aus 9.1.2 Micro$oft Knowledge Base Artikel-ID:933305 Version:4.1 |