fixed couple flymake warnings

I.e. my flymake setup is configured to warn for variables exported
from the case.

Change-Id: I95a1ce6b775c7ab19ef4c96d52eda2014b06c88c
Reviewed-on: http://review.couchbase.org/40086
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>