Fixed various clang -Wunused-but-set-variable warnings
In many cases just suppress the warning.
In some cases, improved test code to actually use CheckErrorMessage() result.
In many cases just suppress the warning.
In some cases, improved test code to actually use CheckErrorMessage() result.