[1.2.2] Fix all compiler warnings