Fix building with clang

A return without a value is not allowed in a function returning int.