I had hoped that the #ifdef _MSC_VER brackets would prevent the code
snippets from annoying other compilers, but I have admittedly only
cross-tested with XCode/gcc, which is not everything. Indeed, it
would not entirely amaze me if the next version of Visual C++ would
take umbrage at the code.
It was an idea.
-- P.
On 4-May-2007, at 3:00, Roger Dannenberg wrote:
Peter,
I once tried to write code that would issue no warnings, and
ended up going in circles -- changes that eliminated warnings on
one platform would generate them on another. Sounds impossible, but
a good example is one compiler knows that an exception or longjump
jumps out of a function, so a following return stmt is unreachable
code, whereas another compiler will know nothing about the
exception and complain that you aren't returning a value. Anyway, I
agree we should try to turn off warnings that are not warning us
about real bugs. The trick is to be cross-platform and not turn off
the possibility of getting new useful warnings in the future. If
anyone knows the best way to do this or even a solid "best
practices" approach, please let me know.
-Roger
-------------- http://www.bek.no/~pcastine/Litter/ -------------
Peter Castine +--> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de
_______________________________________________
media_api mailing list
[email protected]
http://www.create.ucsb.edu/mailman/listinfo/media_api