Date: Mon, 7 Aug 2000 10:38:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: implicite declaration warning? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 7 Aug 2000, Damian Yerrick wrote: > >I think -ansi and -pedantic are not important for this. > > They might not, but the OP can't see the grader script, and the grader > might not be using GCC. Several errors that show up in (for example) > MSVC at default settings need -ansi -pedantic in GCC. Since the GCC project generally dislikes -ansi and -pedantic, expect them to introduce limitations in the compiler's otherwise excellent diagnostics. In addition, -ansi might pop up warnings in otherwise valid programs, which would unnecessarily confuse inexperienced users. I think turning on all the -W* options will produce much more warnings than -ansi and -pedantic ever could. So I don't recommend using those switches. The argument about other compilers is IMHO not an important consideration, because no two compilers emit the same warnings for the same program. If the course curricula at all allow use of different compilers, they cannot be too picky about warnings. If they _are_ picky, the only way out is to use the same compiler as the grader.