Fix FTBFS with clang instead of gcc

This will fix the non-void function should return a value error.