Fixed compile errors when using -Werror

(cherry picked from commit 33caa113ad3368bf8148924c28e76fa5f64d542c)
1 file changed