From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-09-26 06:13:02
At 12:49 AM 9/26/2001, Scott McCaskill wrote:
>> Is the issue that a and b are in fact use in some control paths, and so
>> can't just be commented out (or outright removed), yet the compiler is
>> warning because they aren't used in all control paths?
>I have seen cases where assert() was used to check the return value of a
>function. In such cases, the return value must be stored in a temporary,
>and as a result there may be warnings in non-debug builds.
But isn't the usual practice in that case to wrap the temporary and store
to it in an #ifndef NDEBUG?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk