We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_xoptional.cpp:203:34: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] EXPECT_EQ(res5, optional(d1 || d2, true)); ^~ ~~ /usr/local/include/gtest/gtest.h:1969:29: note: expanded from macro 'EXPECT_EQ' val1, val2) ^~~~ /usr/local/include/gtest/gtest_pred_impl.h:161:40: note: expanded from macro 'EXPECT_PRED_FORMAT2' GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) ^~ /usr/local/include/gtest/gtest_pred_impl.h:146:43: note: expanded from macro 'GTEST_PRED_FORMAT2_' GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ ^~ /usr/local/include/gtest/gtest_pred_impl.h:76:52: note: expanded from macro 'GTEST_ASSERT_' if (const ::testing::AssertionResult gtest_ar = (expression)) \ ^~~~~~~~~~ test_xoptional.cpp:203:40: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] EXPECT_EQ(res5, optional(d1 || d2, true)); ~~ ^~ /usr/local/include/gtest/gtest.h:1969:29: note: expanded from macro 'EXPECT_EQ' val1, val2) ^~~~ /usr/local/include/gtest/gtest_pred_impl.h:161:40: note: expanded from macro 'EXPECT_PRED_FORMAT2' GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) ^~ /usr/local/include/gtest/gtest_pred_impl.h:146:43: note: expanded from macro 'GTEST_PRED_FORMAT2_' GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ ^~ /usr/local/include/gtest/gtest_pred_impl.h:76:52: note: expanded from macro 'GTEST_ASSERT_' if (const ::testing::AssertionResult gtest_ar = (expression)) \ ^~~~~~~~~~ test_xoptional.cpp:206:34: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] EXPECT_EQ(res6, optional(d1 && d2, true)); ^~ ~~ /usr/local/include/gtest/gtest.h:1969:29: note: expanded from macro 'EXPECT_EQ' val1, val2) ^~~~ /usr/local/include/gtest/gtest_pred_impl.h:161:40: note: expanded from macro 'EXPECT_PRED_FORMAT2' GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) ^~ /usr/local/include/gtest/gtest_pred_impl.h:146:43: note: expanded from macro 'GTEST_PRED_FORMAT2_' GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ ^~ /usr/local/include/gtest/gtest_pred_impl.h:76:52: note: expanded from macro 'GTEST_ASSERT_' if (const ::testing::AssertionResult gtest_ar = (expression)) \ ^~~~~~~~~~ test_xoptional.cpp:206:40: warning: implicit conversion turns floating-point number into integer: 'double' to 'bool' [-Wfloat-conversion] EXPECT_EQ(res6, optional(d1 && d2, true)); ~~ ^~ /usr/local/include/gtest/gtest.h:1969:29: note: expanded from macro 'EXPECT_EQ' val1, val2) ^~~~ /usr/local/include/gtest/gtest_pred_impl.h:161:40: note: expanded from macro 'EXPECT_PRED_FORMAT2' GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) ^~ /usr/local/include/gtest/gtest_pred_impl.h:146:43: note: expanded from macro 'GTEST_PRED_FORMAT2_' GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ ^~ /usr/local/include/gtest/gtest_pred_impl.h:76:52: note: expanded from macro 'GTEST_ASSERT_' if (const ::testing::AssertionResult gtest_ar = (expression)) \ ^~~~~~~~~~ 4 warnings generated. [26/52] /usr/bin/c++ -DHAVE_NLOHMANN_JSON -isystem /usr/local/include -isystem /usr/ports/devel/xtl-quant-stack/work/stage/usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wunused-parameter -Wextra -Wreorder -Wconversion -Wsign-conversion -march=native -pthread -std=gnu++14 -MD -MT CMakeFiles/test_xcomplex.dir/test_xcomplex.cpp.o -MF CMakeFiles/test_xcomplex.dir/test_xcomplex.cpp.o.d -o CMakeFiles/test_xcomplex.dir/test_xcomplex.cpp.o -c test_xcomplex.cpp [27/52] /usr/bin/c++ -DHAVE_NLOHMANN_JSON -isystem /usr/local/include -isystem /usr/ports/devel/xtl-quant-stack/work/stage/usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wunused-parameter -Wextra -Wreorder -Wconversion -Wsign-conversion -march=native -pthread -std=gnu++14 -MD -MT CMakeFiles/test_xmasked_value.dir/test_xmasked_value.cpp.o -MF CMakeFiles/test_xmasked_value.dir/test_xmasked_value.cpp.o.d -o CMakeFiles/test_xmasked_value.dir/test_xmasked_value.cpp.o -c test_xmasked_value.cpp [28/52] : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector CMakeFiles/test_xoptional.dir/test_xoptional.cpp.o -o test_xoptional -Wl,-rpath,/usr/local/lib /usr/local/lib/libgtest.so /usr/local/lib/libgtest_main.so -pthread && : [29/52] : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector CMakeFiles/test_xcomplex.dir/test_xcomplex.cpp.o -o test_xcomplex -Wl,-rpath,/usr/local/lib /usr/local/lib/libgtest.so /usr/local/lib/libgtest_main.so -pthread && : [30/52] : && /usr/bin/c++ -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fstack-protector CMakeFiles/test_xmasked_value.dir/test_xmasked_value.cpp.o -o test_xmasked_value -Wl,-rpath,/usr/local test_xhash.cpp:25:49: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t* hashes = new uint8_t[hashbytes * 256]; ~~~ ~~~~~~~~~~^~~~~ test_xhash.cpp:26:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t* res = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ test_xhash.cpp:94:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * buffer1 = new uint8_t[buflen]; ~~~ ^~~~~~ test_xhash.cpp:95:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * buffer2 = new uint8_t[buflen]; ~~~ ^~~~~~ test_xhash.cpp:97:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * hash1 = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ test_xhash.cpp:98:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * hash2 = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ test_xhash.cpp:25:49: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t* hashes = new uint8_t[hashbytes * 256]; ~~~ ~~~~~~~~~~^~~~~ test_xhash.cpp:159:27: note: in instantiation of function template specialization 'xtl::verification_test<unsigned long (*)(const void *, unsigned long, unsigned long)>' requested here uint32_t actual = verification_test(&hash_bytes, sizeof(std::size_t)); ^ test_xhash.cpp:26:36: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t* res = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ test_xhash.cpp:94:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * buffer1 = new uint8_t[buflen]; ~~~ ^~~~~~ test_xhash.cpp:166:21: note: in instantiation of function template specialization 'xtl::sanity_test<unsigned long (*)(const void *, unsigned long, unsigned long)>' requested here EXPECT_TRUE(sanity_test(&hash_bytes, sizeof(std::size_t))); ^ test_xhash.cpp:95:41: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * buffer2 = new uint8_t[buflen]; ~~~ ^~~~~~ test_xhash.cpp:97:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * hash1 = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ test_xhash.cpp:98:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] uint8_t * hash2 = new uint8_t[hashbytes]; ~~~ ^~~~~~~~~ 12 warnings generated.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: