Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2018 18:48:00 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478078 - head/net/mgen/files
Message-ID:  <201808251848.w7PIm0jr079297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Aug 25 18:47:59 2018
New Revision: 478078
URL: https://svnweb.freebsd.org/changeset/ports/478078

Log:
  net/mgen: Fix build with Clang 6
  
  ../common/mgenSocketList.cpp:231:20: error: cannot initialize return object of type 'MgenSocketList::Item *' with an rvalue of type 'bool'
              return false;
                     ^~~~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/mgen-4.2b6.log

Added:
  head/net/mgen/files/patch-common_mgenSocketList.cpp   (contents, props changed)

Added: head/net/mgen/files/patch-common_mgenSocketList.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/mgen/files/patch-common_mgenSocketList.cpp	Sat Aug 25 18:47:59 2018	(r478078)
@@ -0,0 +1,15 @@
+../common/mgenSocketList.cpp:231:20: error: cannot initialize return object of type 'MgenSocketList::Item *' with an rvalue of type 'bool'
+            return false;
+                   ^~~~~
+
+--- common/mgenSocketList.cpp.orig	2018-08-25 18:45:33 UTC
++++ common/mgenSocketList.cpp
+@@ -228,7 +228,7 @@ MgenSocketList::Item* MgenSocketList::JoinGroup(const 
+         {
+             DMSG(0, "MgenSocketList::JoinGroup() memory allocation error: %s\n",
+                     GetErrorString());
+-            return false;
++            return NULL;
+         }
+         item->SetSocketNotifier(socket_notifier);
+         Prepend(item);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808251848.w7PIm0jr079297>