[ 
https://issues.apache.org/jira/browse/ORC-329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gang Wu reassigned ORC-329:
---------------------------

    Assignee: Gang Wu

> [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
>            Assignee: Gang Wu
>            Priority: Minor
>
> 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)

Reply via email to