Made no_unused_warnings() function more transparent for the user's code.
Silenced a few gcc warnings in tests.
Removed constexpr from no_unused_warnings() function since it has void return type.