Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-329

[C++] Fix error: zero as null pointer constant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.0
    • 1.5.0
    • C++
    • None

    Description

      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'

      1. define NULL __null
        ^

      Attachments

        Issue Links

          Activity

            People

              wgtmac Gang Wu
              wgtmac Gang Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: