| delorie.com/archives/browse.cgi | search |
| From: | Martin Str|mberg <ams AT father DOT ludd DOT luth DOT se> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Warning : if (x=y) |
| Date: | 9 Sep 2000 12:57:00 GMT |
| Organization: | University of Lulea, Sweden |
| Lines: | 19 |
| Message-ID: | <8pdc2s$1b6$2@news.luth.se> |
| References: | <8pd7q6$ljs$2 AT info DOT cyf-kr DOT edu DOT pl> |
| X-Trace: | news.luth.se 968504220 1382 130.240.16.18 (9 Sep 2000 12:57:00 GMT) |
| X-Complaints-To: | abuse AT luth DOT se |
| User-Agent: | tin/pre-1.4-981225 ("Volcane") (UNIX) (SunOS/4.1.4 (sun4m)) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
RafaX Maj <r_maj AT poczta DOT onet DOT pl> wrote:
: How to turn on warning messages for expression :
: if (x=y) { ... }
: I have use Turbo Pascal for over 6 years, so now in C++ I'm often writing
: if (x=y)
: instead of
: if (x==y)
: What is command-line option for turning on warning messages for this
: expression ?
"-Wall" does that. I'm not sure there is one particular for exactly
that warning.
Right,
MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |