[PATCH v3 02/20] build: fix -Werror=maybe-uninitialized