From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9ab217670701161002g33eeecc0u88e851e63a57d21f@mail.gmail.com> Date: Tue, 16 Jan 2007 13:02:32 -0500 From: "Devon H. O'Dell" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] const if false In-Reply-To: <13426df10701160939i7d46b5b1t8f89ab0ae88361cd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13426df10701160939i7d46b5b1t8f89ab0ae88361cd@mail.gmail.com> Topicbox-Message-UUID: 0468de98-ead2-11e9-9d60-3106f5b1d025 2007/1/16, ron minnich : > it's on something like this: > > if (A != 0 && keylen != A) { > } > > > gets an error 'const if false' > > A is defined to zero. So, what do I care if 'const if false'. I did > not write this code ... but it's what they want, evidently. I guess because the first part of the if is always false, the if is useless and it is telling you to fix `your' code. --dho > ron >