Cute-Test / cdt-plugin

Eclipse CDT integration of the CUTE Unit Testing Framework
Eclipse Public License 2.0
0 stars 1 forks source link

clang gives signed/unsigned conversion warning #3

Open PeterSommerlad opened 5 years ago

PeterSommerlad commented 5 years ago

Expected Behavior

cute headers compile without warnings

Actual Behavior

/Users/sop/Documents/C++WG21/public_repos/scope17/cevelop-workspace/scope17/cute/cute_runner.h:96:28: warning: implicit conversion changes signedness: 'int' to 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                        args.reserve(argc-1);

/Users/sop/Documents/C++WG21/public_repos/scope17/cevelop-workspace/scope17/cute/cute_runner.h:112:16: warning: implicit conversion changes signedness: 'typename iterator_traits<__wrap_iter<const test *> >::difference_type' (aka 'long') to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
                                count_if(s.begin(),s.end(),boost_or_tr1::bind(&runner_aux::ArgvTestFilter::shouldRun,filter,boost_or_tr1::bind(&test::name,_1))));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CUTE or CUTE Eclipse Plug-in Version, Operating System and Compiler

cute headers 2.2.1