Funny mistake

Christopher R Volpe volpe at camelback.crd.ge.com
Fri Mar 22 00:12:25 AEST 1991


In article <15529 at smoke.brl.mil>, gwyn at smoke.brl.mil (Doug Gwyn) writes:
|>In article <1991Mar20.173511.3904 at zoo.toronto.edu>
henry at zoo.toronto.edu (Henry Spencer) writes:
|>>Even in the world of UNIX, the compilers generate warnings for
|>>excessively-suspicious constructs.
|>
|>Only for outright violations of the language specification,
|>not for what are now known as strictly conforming programs.

I wouldn't mind having warnings for suspicious yet strictly conforming
constructs. Especially if I could do:

#pragma SHUT_UP
if (temp=var1)
  printf("func(%d) is %d\n",temp,func(&var1));
else
  printf("Value is zero! Cannot apply function. Aborting...\n");
#pragma OK_TO_NAG
      
==================
Chris Volpe
G.E. Corporate R&D
volpecr at crd.ge.com



More information about the Comp.lang.c mailing list