yangjian1218 / seetaface6ToPy

seetaface6的python实现
32 stars 15 forks source link

warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings] 538 | vector<char *> level_string = {"LOW", "MEDIUM", "HIGH"}; #14

Open yuanweirui1225 opened 11 months ago

yuanweirui1225 commented 11 months ago

[ 50%] Building CXX object CMakeFiles/SeetaFaceAPI.dir/SeetaFaceAPI.cpp.o /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp: In function ‘char ClarityEvaluate(SeetaImageData&, const SeetaRect&, SeetaPointF)’: /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:538:36: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 538 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:538:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 538 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:538:53: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 538 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp: In function ‘char BrightEvaluate(SeetaImageData&, const SeetaRect&, SeetaPointF)’: /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:546:36: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 546 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:546:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 546 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:546:53: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 546 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp: In function ‘char ResolutionEvaluate(SeetaImageData&, const SeetaRect&, SeetaPointF)’: /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:554:36: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 554 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:554:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 554 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:554:53: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 554 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp: In function ‘char PoseEvaluate(SeetaImageData&, const SeetaRect&, SeetaPointF)’: /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:562:36: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 562 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:562:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 562 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:562:53: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 562 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp: In function ‘char IntegrityEvaluate(SeetaImageData&, const SeetaRect&, SeetaPointF)’: /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:570:36: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 570 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:570:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 570 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~~~ /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/SeetaFaceAPI.cpp:570:53: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings] 570 | vector<char > level_string = {"LOW", "MEDIUM", "HIGH"}; | ^~ [100%] Linking CXX shared library /root/autodl-tmp/ywr/seetaface6ToPy/seetaface/lib/libSeetaFaceAPI.so

yuanweirui1225 commented 11 months ago

这个怎么搞呢