editor: fix some warnings