[gmpi] Re: Plugin Factory Update
- From: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>
- To: gmpi@xxxxxxxxxxxxx
- Date: Wed, 02 Mar 2005 13:43:17 -0500
>We compile with maximum warnings and treat warnings as errors. However,
>we have this particular warning #pragmad to be off, because we have some
>very useful runtime error checking macros that actually do assign within
>a conditional.
i am sure you know this ron, but the test is for assignment *as* the
conditional, not within. so,
if (a = b) <= warning
if ((a = b) != 0) <= no warning
i might be dumb, but i can't see how the first example should ever be
considered good code. the lower example is fine. what devious trick
have i missed out after all these years? :)
--p
----------------------------------------------------------------------
Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules: Please stay on topic. You are responsible for your own
words. Please respect your fellow subscribers. Please do not
redistribute anyone else's words without their permission.
Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe
- References:
- [gmpi] Re: Plugin Factory Update
- From: Ron Kuper
Other related posts:
- » [gmpi] Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- » [gmpi] Re: Plugin Factory Update
- [gmpi] Re: Plugin Factory Update
- From: Ron Kuper