Fix warnings in sample detected by NDK_ANALYZE=1

Change-Id: I999a96fb3de5225adde91eb014170ffd7b6092f6