You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Gang Wu (JIRA)" <ji...@apache.org> on 2018/04/02 21:20:00 UTC
[jira] [Created] (ORC-329) [C++] Fix error: zero as null pointer
constant
Gang Wu created ORC-329:
---------------------------
Summary: [C++] Fix error: zero as null pointer constant
Key: ORC-329
URL: https://issues.apache.org/jira/browse/ORC-329
Project: ORC
Issue Type: Bug
Components: C++
Affects Versions: 1.5.0
Reporter: Gang Wu
After upgrading xcode on mac to Apple LLVM version 9.1.0 (clang-902.0.39.1), I can see some errors as following while building orc:
Scanning dependencies of target csv-import
[ 82%] Building CXX object tools/src/CMakeFiles/csv-import.dir/CSVFileImport.cc.o
/Users/gang.w/orc/tools/src/CSVFileImport.cc:48:19: error: zero as null pointer constant
[-Werror,-Wzero-as-null-pointer-constant]
time_t t = time(NULL);
^~~~
nullptr
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:100:18: note:
expanded from macro 'NULL'
# define NULL __null
^
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)