CLANG warning cleanup

Cleanup some CLANG compiler warning in Core
packages related to unused variables and expressions.
CLANG Warning cleanup

Instead of eliminating the unused warning by
printing the unused expression, compare it
to an arbitrary large number.
Merge pull request #3614 from wddgit/clangWarningCleanupInCore

CLANG warning cleanup