CGE2: Silence some gcc and cppcheck warnings