Skip to content
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

Spectre mitigation warning on progress_monitor code #427

Open
correaa opened this issue Jul 23, 2024 · 0 comments
Open

Spectre mitigation warning on progress_monitor code #427

correaa opened this issue Jul 23, 2024 · 0 comments

Comments

@correaa
Copy link

correaa commented Jul 23, 2024

I am using Boost.Test (in header-only mode, using "included"), for a Boost-aspiring project https://github.com/correaa/boost-multi

I am getting this warning with MSVC 143:

D:\a\boost-multi\boost-multi\vcpkg\installed\x64-windows\include\boost\test\impl\progress_monitor.ipp(62): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified [D:\a\boost-multi\boost-

https://github.com/correaa/boost-multi/actions/runs/10066511703/job/27828050365#step:9:62

FWIIW, this line has suspicious code as a variable is modified inside a condition: https://github.com/boostorg/test/blob/develop/include/boost/test/impl/progress_monitor.ipp#L61

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

No branches or pull requests

1 participant