-
Notifications
You must be signed in to change notification settings - Fork 431
remove warnings #2885
New issue
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
base: master
Are you sure you want to change the base?
remove warnings #2885
Conversation
test/test_xcomplex.cpp
Outdated
| EXPECT_TRUE(allclose(cmplexpected_angle, cmplres_angle)); | ||
|
|
||
| using assign_t_angle = xassign_traits<xarray<double>, decltype(cmplres_angle)>; | ||
| (void) sizeof(assign_t_angle); // to avoid unused warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the definition where it is used instead of this horrible hack.
test/test_xcomplex.cpp
Outdated
| EXPECT_TRUE(allclose(cmplexpected_conj, cmplres_conj)); | ||
|
|
||
| using assign_t_conj = xassign_traits<xarray<std::complex<double>>, decltype(cmplres_conj)>; | ||
| (void) sizeof(assign_t_conj); // to avoid unused warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same remark here
test/test_xcomplex.cpp
Outdated
| }; | ||
|
|
||
| using assign_t_norm = xassign_traits<xarray<double>, decltype(cmplres_norm)>; | ||
| (void) sizeof(assign_t_norm); // to avoid unused warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
test/test_xcomplex.cpp
Outdated
| } | ||
|
|
||
| using assign_t_arg = xassign_traits<xarray<double>, decltype(cmplres)>; | ||
| (void) sizeof(assign_t_arg); // to avoid unused warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
test/test_xreducer.cpp
Outdated
|
|
||
| #define TEST_VALUE_HAS_VALUE(INPUT, V_TYPE, OPTIONAL) \ | ||
| using result_type = std::conditional_t<OPTIONAL, xtl::xoptional<double>, double>; \ | ||
| (void) sizeof(result_type); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not required since result_type is used just below.
test/test_xstrided_view.cpp
Outdated
| EXPECT_EQ(a, par); | ||
| } | ||
| using assign_traits = xassign_traits<xarray<double>, decltype(av)>; | ||
| (void) sizeof(assign_traits); // to avoid unused warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the definition where it is used instead.
test/test_xview.cpp
Outdated
| // Suppress unused typedef warnings | ||
| (void) sizeof(ctes); | ||
| (void) sizeof(carr); | ||
| (void) sizeof(cfix); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 3 lines can be removed.
| auto vxa = view(xt::arange<double>(100), range(0, 10)); | ||
|
|
||
| using assign_traits = xassign_traits<decltype(vxt), decltype(b)>; | ||
| (void) sizeof(assign_traits); // suppress unused typedef warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the definition where it is used.
Checklist
Description