'Possibly Incorrect Assignment' warnings from Turbo-C

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Nov 26 07:04:01 AEST 1989


In article <256D8362.18B at marob.masa.com> daveh at marob.masa.com (Dave Hammond) writes:
>if (p = func())
>Am I fooling myself by ass/u/ming that func() will always be invoked
>and its return value assigned to p, before p is evaluated ?

That's not what Turbo-C is warning you about.  It thinks you might have
meant to type:
	if (p == func())



More information about the Comp.lang.c mailing list