flash.c: fix warnings produced by scan-build