mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
archivers/xmill: unbreak build with Clang 6 (C++14 by default)
./xmillinspect/exprinfo.cpp:64:10: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t' return NULL; ^~~~ /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL' #define NULL nullptr ^~~~~~~ Reported by: pkg-fallout
This commit is contained in:
parent
0ac5d66f69
commit
8b5d19a404
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459569
1 changed files with 18 additions and 0 deletions
18
archivers/xmill/files/patch-xmillinspect_exprinfo.cpp
Normal file
18
archivers/xmill/files/patch-xmillinspect_exprinfo.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
./xmillinspect/exprinfo.cpp:64:10: error: cannot initialize return object of type 'int' with an rvalue of type 'nullptr_t'
|
||||
return NULL;
|
||||
^~~~
|
||||
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
|
||||
#define NULL nullptr
|
||||
^~~~~~~
|
||||
|
||||
--- xmillinspect/exprinfo.cpp.orig 2003-03-23 15:06:16 UTC
|
||||
+++ xmillinspect/exprinfo.cpp
|
||||
@@ -61,7 +61,7 @@ int ExprInfo::getSubContainerType(int sub)
|
||||
if (expr) {
|
||||
return expr->getContainerType();
|
||||
} else {
|
||||
- return NULL;
|
||||
+ return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue