editor: fix gcc-warnings properly