Skip to content

Fix msvc build warnings#572

Merged
JohanMabille merged 1 commit into
xtensor-stack:masterfrom
cyb70289:fix-warnings
Sep 28, 2021
Merged

Fix msvc build warnings#572
JohanMabille merged 1 commit into
xtensor-stack:masterfrom
cyb70289:fix-warnings

Conversation

@cyb70289
Copy link
Copy Markdown
Contributor

There are some msvc build warnings in current xsimd code. It may block
adoption of xsimd by some projects (e.g., apache arrow) if they treat
compiler warnings as errors. As xsimd is header only, it's not easy to
build xsimd separately to ignore the warnings.

@cyb70289 cyb70289 marked this pull request as draft September 28, 2021 06:23
#endif

#if !defined(__clang__) && (defined(_M_X64) || (defined(_M_IX86_FP) && _M_IX86_FP >= 2))
#undef XSIMD_WITH_SSE4_2
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread test/test_select.cpp
}
size_t diff = detail::get_nb_diff(res, expected);
EXPECT_EQ(diff, 0) << print_function_name("pow");
EXPECT_EQ(diff, 0) << print_function_name("select_dynamic");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happen to see this typo

Comment thread include/xsimd/arch/xsimd_sse4_1.hpp Outdated
There are some msvc build warnings in current xsimd code. It may block
adoption of xsimd by some projects (e.g., apache arrow) if they treat
compiler warnings as errors. As xsimd is header only, there's no way to
build xsimd separately to suppress the warnings. Fixing build warnings
is also good for project quality.
@cyb70289 cyb70289 marked this pull request as ready for review September 28, 2021 07:51
@JohanMabille
Copy link
Copy Markdown
Member

Thanks!

@JohanMabille JohanMabille merged commit 6424c7f into xtensor-stack:master Sep 28, 2021
@cyb70289 cyb70289 deleted the fix-warnings branch September 28, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants