File opal-3.6.6-non_void.patch of Package opal
Index: plugins/LID/CAPI/CAPI.cxx
===================================================================
--- plugins/LID/CAPI/CAPI.cxx.orig
+++ plugins/LID/CAPI/CAPI.cxx
@@ -204,6 +204,7 @@ public:
Result GET_MANUFACTURER(char * szBuffer)
{
capi20_get_manufacturer(0, (unsigned char *)szBuffer);
+ return 0;
}
Result GET_VERSION(UInt *pCAPIMajor, UInt *pCAPIMinor, UInt *pManufacturerMajor, UInt *pManufacturerMinor)
Index: opal.m4
===================================================================
--- opal.m4.orig
+++ opal.m4
@@ -82,7 +82,7 @@ dnl Define: $1_LIB_NAME The actual na
AC_DEFUN([OPAL_GET_LIBNAME],
[
AC_MSG_CHECKING(filename of $2 library)
- AC_LANG_CONFTEST([int main () {}])
+ AC_LANG_CONFTEST([int main () {return 0;}])
$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS $3>&AS_MESSAGE_LOG_FD
if test \! -x conftest$ac_exeext ; then
AC_MSG_RESULT(cannot determine - using defaults)
Index: plugins/configure
===================================================================
--- plugins/configure.orig
+++ plugins/configure
@@ -6832,7 +6832,7 @@ $as_echo "yes" >&6; }
$as_echo_n "checking filename of libx264 library... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-int main () {}
+int main () {return 0;}
_ACEOF
$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS $X264_LIBS>&5
if test \! -x conftest$ac_exeext ; then