Path: utzoo!attcan!uunet!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: 'Possibly Incorrect Assignment' warnings from Turbo-C Message-ID: <11684@smoke.BRL.MIL> Date: 25 Nov 89 20:04:01 GMT References: <256D8362.18B@marob.masa.com> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <256D8362.18B@marob.masa.com> daveh@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())