From owner-freebsd-hackers Wed Jun 16 5:51:32 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (Postfix) with ESMTP id BA122150B7 for ; Wed, 16 Jun 1999 05:51:30 -0700 (PDT) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id IAA02867; Wed, 16 Jun 1999 08:51:57 -0400 (EDT) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.2/8.8.5) with ESMTP id IAA02094; Wed, 16 Jun 1999 08:51:25 -0400 (EDT) Received: (from rivers@localhost) by lakes.dignus.com (8.9.2/8.6.9) id IAA04314; Wed, 16 Jun 1999 08:51:25 -0400 (EDT) Date: Wed, 16 Jun 1999 08:51:25 -0400 (EDT) From: Thomas David Rivers Message-Id: <199906161251.IAA04314@lakes.dignus.com> To: mladavac@metropolitan.at, nick.hibma@jrc.it Subject: Re: compiler warnings (was: RE: Typo: sys/pci/pcisupport.c) Cc: hackers@FreeBSD.ORG In-Reply-To: <55586E7391ACD211B9730000C110027617967A@r-lmh-wi-100.corpnet.at> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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