db_flatstore: fix clang compiler warning