Hi,
I'm trying fix a FTBFS of gdcm , but just in ppc64le rawhide I have one
strange compile error [1] which I can't find a solution, all logs where
[2] . Can someone help me to fix it ?
Thanks.
[1]
/builddir/build/BUILD/gdcm-2.8.8/Testing/Source/Common/Cxx/TestString2.cxx:29:24: error:
narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing]
BUILDSTDERR: 29 | gdcm::String<EOF,64,0> s3 = "coucou";
BUILDSTDERR: | ^
BUILDSTDERR:
/builddir/build/BUILD/gdcm-2.8.8/Testing/Source/Common/Cxx/TestString2.cxx:29:31: error:
invalid conversion from 'const char*' to 'int' [-fpermissive]
BUILDSTDERR: 29 | gdcm::String<EOF,64,0> s3 = "coucou";
BUILDSTDERR: | ^~~~~~~~
BUILDSTDERR: | |
BUILDSTDERR: | const char*
BUILDSTDERR:
/builddir/build/BUILD/gdcm-2.8.8/Testing/Source/Common/Cxx/TestString2.cxx:30:19: error:
request for member 'c_str' in 's3', which is of non-class type
'int'
BUILDSTDERR: 30 | std::cout << s3.c_str() << " -> " <<
s3.size() << std::endl;
BUILDSTDERR: | ^~~~~
BUILDSTDERR:
/builddir/build/BUILD/gdcm-2.8.8/Testing/Source/Common/Cxx/TestString2.cxx:30:43: error:
request for member 'size' in 's3', which is of non-class type
'int'
BUILDSTDERR: 30 | std::cout << s3.c_str() << " -> " <<
s3.size() << std::endl;
BUILDSTDERR: | ^~~~
BUILDSTDERR:
/builddir/build/BUILD/gdcm-2.8.8/Testing/Source/Common/Cxx/TestString2.cxx:32:24: error:
narrowing conversion of '-1' from 'int' to 'char' [-Wnarrowing]
BUILDSTDERR: 32 | gdcm::String<EOF,64,0> s4 = "coucou!";
[2]
https://copr.fedorainfracloud.org/coprs/sergiomb/opencv/build/859384/
--
Sérgio M. B.