From: "bowman" Newsgroups: comp.os.msdos.djgpp References: <8pd7q6$ljs$2 AT info DOT cyf-kr DOT edu DOT pl> <8pd96i$3bv$1 AT neptunium DOT btinternet DOT com> Subject: Re: Warning : if (x=y) Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Message-ID: Date: Sat, 9 Sep 2000 16:38:15 -0600 NNTP-Posting-Host: 208.4.224.94 X-Trace: newsfeed.slurp.net 968538635 208.4.224.94 (Sat, 09 Sep 2000 17:30:35 CDT) NNTP-Posting-Date: Sat, 09 Sep 2000 17:30:35 CDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thomas Harte wrote in message > > I don't think there is one, since it is perfectly valid syntax. Yes, it is valid, but it may not be what you intended. Using -Wall will gently hint that it might not be what you want to do. It is a good idea to use -Wall, and to know that for every warning what you have typed in is actually what you want to do. sprintf("%s is fubar\n", foo) will compile and link too, but you'd do well to check out the warnings.