writerfilter: Fix various Clang warnings

Change-Id: I733bcf8e02e659ef18ee9c2be4ad4e9f107fe7c6