[PATCH] fix Linaro toolchain warnings (AndreiLux)