freebsd-ports/devel/libcwd/files/patch-configure
Tobias Kortkamp b177fb431b devel/libcwd: Unbreak build with GCC >= 8
conftest.cpp:11:36: error: return-statement with a value, in function returning 'void'

http://package22.nyi.freebsd.org/data/112amd64-default-PR231590/2018-10-29_06h48m05s/logs/errors/libcwd-1.0.6_3.log

PR:		231590
2018-10-30 18:04:16 +00:00

15 lines
384 B
Text

Unbreak build with GCC >= 8
conftest.cpp:11:36: error: return-statement with a value, in function returning 'void'
--- configure.orig 2018-10-30 17:53:07 UTC
+++ configure
@@ -17744,7 +17744,7 @@ if ac_fn_cxx_try_run "$LINENO"; then :
#define ARGF f
#endif
template<typename ARG>
- void detect_type(ARG)
+ int detect_type(ARG)
{
return reinterpret_cast<ARG*>(0);
}