[Olena-patches] milena r2749: Add void cast to remove unused variable warnings