Fix various warnings
Fix various warnings which gcc-9.2.1 (20190827) complains about. Their specifics can be found in the commits below.
Fix various warnings which gcc-9.2.1 (20190827) complains about. Their specifics can be found in the commits below.