CLANG warning cleanup

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