[sr-dev] git:master: core: fix warnings/eliminate unused variables