Subject: | -Wreturn-type error |
On FreeBSD systems with clang as compiler the compilation fails:
...
"/usr/perl5.28.1Dp/bin/perl5.28.1" -MExtUtils::Command::MM -e 'cp_nonempty' -- Store.bs blib/arch/auto/Ref/Store/Store.bs 644
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" -DPIC -fPIC "-I/usr/perl5.28.1Dp/lib/5.28.1/amd64-freebsd-ld/CORE" hr_pl.c
hr_pl.c:24:3: error: non-void function 'hr_freehook' should return a value [-Wreturn-type]
return;
^
... (snipped more warnings) ...
3 warnings and 1 error generated.
*** Error code 1
Stop.