Use -Werror in frameworks/base/tools/stats_log_api_gen

* Remove unused local variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I24b33facec0bfd73eb5c2a9759b42f9c98ee285f
2 files changed