Skip to content

Need help with error while building. #15

@ve3elb

Description

@ve3elb

Can someone help is solving this issue. Please and thank you. While compiling this error shows up.

/home/pi/yaml-cpp/test/binary_test.cpp: In member function ‘virtual void BinaryTest_DecodingNoCrashOnNegative_Test::TestBody()’:
/home/pi/yaml-cpp/test/binary_test.cpp:11:39: error: narrowing conversion of ‘-58’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
std::string input{-58, -1, -99, -109};
^
make[2]: *** [test/CMakeFiles/yaml-cpp-tests.dir/build.make:63: test/CMakeFiles/yaml-cpp-tests.dir/binary_test.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 60%] Linking CXX executable read
[ 60%] Built target yaml-cpp-read
make[1]: *** [CMakeFiles/Makefile2:996: test/CMakeFiles/yaml-cpp-tests.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions