Skip to content
Snippets Groups Projects
Commit c25abd25 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: explicit cast to avoid narrow conversion in internal libsiftfast

Following recent commits on the ITK side which use clang-modernize to insert
missing override keyword, cf:

https://github.com/InsightSoftwareConsortium/ITK/commit/10757725be9cbe68ab2903c9cd4b76b738070e63

I had to compile OTB trunk using clang and  c++11 flags:

mkdir OTB-newclang
cd OTB-newclang/
CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-std=c++11 -stdlib=libstdc++" ccmake -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON ../../../src/OTB

Internal libsiftfast does not compile as clang report error "error: argument evaluates to XXX
which cannot be narrowed to type YYY"

I added explicit cast to int in that cases.
parent e0dcc2a6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment