orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gang Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-329) [C++] Fix error: zero as null pointer constant
Date Mon, 02 Apr 2018 21:20:00 GMT
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)

Mime
View raw message