#5505 closed defect (invalid)
Compile error in vfkfeature.cpp
Reported by: | springmeyer | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Hitting a compile error with latest trunk + clang++ on OS X: comparison between pointer and integer ('const char *' and 'int')
:
libtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -std=c++11 -stdlib=libc++ -Wno-pragmas -arch x86_64 -Wno-unknown-warning-option -std=c++11 -stdlib=libc++ -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -fvisibility-inlines-hidden -DNDEBUG -O3 -arch x86_64 -D_FILE_OFFSET_BITS=64 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -Wall -I.. -I../.. -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/port -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/gcore -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/alg -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/ogr -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/ogr/ogrsf_frmts -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -DOGR_ENABLED -I/Users/dane/projects/mapnik-packaging/osx/out/packages/gdal-1.10.1/port -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64 -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64 -I/Users/dane/projects/mapnik-packaging/osx/out/build-cpp11-libcpp-x86_64/include -c vfkfeature.cpp -o ../o/vfkfeature.o vfkfeature.cpp:247:16: error: comparison between pointer and integer ('const char *' and 'int') if (poChar == '\0') ~~~~~~ ^ ~~~~ 1 error generated. make[3]: *** [../o/vfkfeature.lo] Error 1 make[2]: *** [vfk-target] Error 2 make[1]: *** [sublibs] Error 2 make: *** [ogr-target] Error 2
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.2.0 Thread model: posix
Change History (2)
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
For the sake of completeness, this is the fix needed: http://trac.osgeo.org/gdal/changeset/27279
Note:
See TracTickets
for help on using tickets.
Sorry, this is invalid. I though I was compiling against master, but this was in fact gdal 1.10.1.