configure: generate an error in extra checks when return type is bogus
clang does it by default but gcc doesn't.
See !4694 (merged)
It's not needed in C++ https://godbolt.org/z/zYPGT6YfT (and the trunk version of gcc does generate the error but not 13.2).
Edited by Steve Lhomme