Date: Wed, 16 Jun 1999 08:51:25 -0400 (EDT) From: Thomas David Rivers <rivers@dignus.com> To: mladavac@metropolitan.at, nick.hibma@jrc.it Cc: hackers@FreeBSD.ORG Subject: Re: compiler warnings (was: RE: Typo: sys/pci/pcisupport.c) Message-ID: <199906161251.IAA04314@lakes.dignus.com> In-Reply-To: <55586E7391ACD211B9730000C110027617967A@r-lmh-wi-100.corpnet.at>
next in thread | previous in thread | raw e-mail | index | archive | help
> > There is a story behind it: our product was shipping for hpux > and was later ported to sinix. It had some instabilities during > development (it was first developed for hpux, then the enhancements were > ported to sinix, almost in parallel). > > A colleague wrote (paraphrased) > > pointer->pointer->object.method; Some compilers will emit something like: Warning: Statement has no side effect for expressions like this (at least, the Systems/C compiler does.) > > where he wanted > > pointer->pointer->object.method(); > > hpux CC did not say a word. Naturally, the method had desired > side effects :) > > /Marino > -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe (370) `C' compiler at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906161251.IAA04314>