freebsd-ports/net/mgen/files/patch-common_mgenSocketList.cpp
Tobias Kortkamp a4263d3993 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
2018-08-25 18:47:59 +00:00

15 lines
627 B
C++

../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);