Assignment in test: OK?
Robert Osborne
robert at isgtec.uucp
Tue Sep 11 22:34:51 AEST 1990
In article <1990Sep5.185451.25532 at DRD.Com> mark at drd.Com (Mark Lawrence) writes:
> [about Saber C warnings for the code...]
> if( (status = FuncCall(foo, bar, gex)) < SomeValue)
> GripeAboutIt();
>
Does this code yield the warning:
Assignment in conditional 'if' expression.
I'm not sure of you exact syntax but I've run similiar code through
Saber and it didn't even blink. We have Saber C here and I've only
ever seen this warning on code that had the form if(x = func(...)).
If the warning is not as above Saber's complaining about something else.
Disclaimer and unabashed recommendation:
I have no association with Saber Software Inc., other than as
a very happy user. Warning: The use of Saber C is habit
forming and getting a Saber C demo tape has been known to cause
purchase soon after. I heartily recommend this product. (ISG
has several licences so they probably agree with me :-)
Rob.
--
Robert A. Osborne ...uunet!utai!lsuc!isgtec!robert or robert at isgtec.uucp
More information about the Comp.lang.c
mailing list