ScopeGuard warnings in G++
Does anybody know how to turn off the "unused variable" warnings for ScopeGuard in g++?
Wow I think I started the first thread that didn't get any responses. I am still looking for a solution to this. It is possible to disable the unused variable warning, but I would like to leave it, and only disable it for ScopeGuard say in ON_BLOCK_EXIT with a pragma.
If anybody cares the solution is to use __attribute__ ((unused)) and the ON_BLOCK_EXIT macro.
' or 1 = 1
' and 1=1
Fog Creek Home