I added a version of this to ChecksumBench.cpp to avoid unused variable warnings
(treated as errors). It seems like it might be more generally useful to have
around.
This is how boost does it as well, so that's a vote of confidence that this
works with most compilers.
Issue 7218045: Add sk_ignore_unused_variable to avoid warnings.
(Closed)
Created 12 years ago by bungeman
Modified 12 years ago
Reviewers: reed1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0