Silence compiler warnings in newer toolchains (gcc 4.8, clang)

Change-Id: I49942c634642b8a3cacf8f9bd217e089b9eb960b
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>