zeromq/zeromq2-2 — pull request #2 by thesamet (2011-12-27 05:07:30+00:00)
Title: Prevent an unused variable warning to be issued when compiling in release mode (NDEBUG)

In two destructors, we are calling assert(rc == 0). In release mode (when compiling with -Wall), the assertions are removed, causing the variable 'rc' to be unused.

I've implemented the solution (workaround?) that is described here by JaredPar: http://stackoverflow.com/questions/5626429/assert-and-unused-local-variable-warning-in-gcc-dont-mix-well