lfsc_checker: fix some warnings reported by _both_ gcc and clang