Closed jamiehush closed 6 years ago
With up-to-date Fedora (gcc-8.1.1) fails to build with following error:
[ 94%] Building CXX object CMakeFiles/yadifflib.dir/build/YaCo/YaDiff/YaDiffLib/Matching.cpp.o In function ‘yadiff::BinaryInfo_t::BinaryInfo_t(const IModel&, const yadiff::AlgoCfg&)::<lambda(const HVersion&)>::<lambda(const const_string_ref&, const const_string_ref&)>’, inlined from ‘static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = ContinueWalking_e; _Functor = yadiff::BinaryInfo_t::BinaryInfo_t(const IModel&, const yadiff::AlgoCfg&)::<lambda(const HVersion&)>::<lambda(const const_string_ref&, const const_string_ref&)>; _ArgTypes = {const const_string_ref&, const const_string_ref&}]’ at /usr/include/c++/8/bits/std_function.h:282:44: /build/YaCo/YaDiff/YaDiffLib/Algo/VectorSign/VectorTypes.cpp:171:20: error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 256 equals destination size [-Werror=stringop-truncation] strncpy(format, val.value, FORMAT_MAX_SIZE); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@jamiehush Please check it's fixed for you and I'll close this issue
With up-to-date Fedora (gcc-8.1.1) fails to build with following error: