fixed for linaro 4.9.x toolchain
warning: operation on ‘ret’ may be undefined