Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!pilchuck!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.lang.c Subject: Re: Compilers and programming style (was Re: A question of style) Message-ID: <2283@dataio.Data-IO.COM> Date: 8 Jan 90 19:58:43 GMT References: <1989Dec22.100135.2903@gdt.bath.ac.uk> <4367@rtech.rtech.com> <1989Dec31.153241.16479@gdt.bath.ac.uk> <649@codonics.COM> <1990Jan5.100042.26760@gdt.bath.ac.uk> Reply-To: bright@dataio.Data-IO.COM (Walter Bright) Organization: Data I/O Corporation; Redmond, WA Lines: 10 int *p; *p; /* has no side effects and should be optimized away, */ /* a warning is justified here as it is probably a */ /* mistake */ (void) *p; /* has no side effects and should be optimized away, */ /* no warning should be generated */ volatile int *p; *p; /* has side effects and must not be optimized away */