Skip to content

Fix build warnings with VS 2022 - #9967

Merged
Nick Kreeger (nkreeger) merged 1 commit into
masterfrom
kreeger/build-fix
Dec 8, 2021
Merged

Fix build warnings with VS 2022#9967
Nick Kreeger (nkreeger) merged 1 commit into
masterfrom
kreeger/build-fix

Conversation

@nkreeger

Copy link
Copy Markdown
Contributor

Build warnings stop build with VS 2022 in helper.cc.

#pragma warning(disable: 4189)
const int r = WideCharToMultiByte(CP_ACP, 0, s.data(), src_len, (char*)ret.data(), len, nullptr, nullptr);
assert(len == r);
#pragma warning(default: 4189)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Because r is not referenced in release mode?

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.

Correct.

@nkreeger
Nick Kreeger (nkreeger) merged commit 051d005 into master Dec 8, 2021
@nkreeger
Nick Kreeger (nkreeger) deleted the kreeger/build-fix branch December 8, 2021 22:43
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
Peter Salas (petersalas) pushed a commit to octoml/onnxruntime that referenced this pull request Nov 8, 2022
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