delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/09/18:46:43

From: "bowman" <bowman AT montana DOT com>
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: <fSyu5.3395$Ek.8792@newsfeed.slurp.net>
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 <T DOT Harte AT btinternet DOT _c_o_m_> 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.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019