Made no_unused_warnings() function more transparent for the user's code.
Silenced a few gcc warnings in tests.