Attempt to fix various harmless compiler warnings reported by Clang-15.