fix more warnings

7 jobs for master in 3 minutes and 36 seconds
Status Job ID Name Coverage
  Test
passed #14233
Linux
clang-c++11

00:02:21

passed #14235
Linux
clang-c++98

00:01:53

passed #14238
Linux
cppcheck

00:01:35

passed #14232
Linux
gcc-c++11

00:03:36

passed #14234
Linux
gcc-c++98

00:02:39

passed #14236
Apple
macos-c++11

00:02:29

passed #14237
Apple
macos-c++98

00:02:18