Minor code cleanups
- Remove "All rights reserved" from Oracle copyright notices
- Variable scope reductions as suggested by cppcheck
- Handle
-Wunused-function
warnings from clang - Handle
-Wextra-semi-stmt
warnings from clang
-Wunused-function
warnings from clang-Wextra-semi-stmt
warnings from clang