Fix compiler warnings.

3 jobs from master in 4 minutes 46 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #4036
build_cmake

01:09

 
  Test
passed #4037
run_tests

01:10

 
  Sanitizer
passed #4038
run_address_sanitizer

02:26