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

Avoid compiler warning in vboxwrapper.cpp #5547

Merged

Conversation

computezrmle
Copy link
Contributor

Got a compiler warning in vboxwrapper.cpp

vboxwrapper.cpp:684:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  684 |     for (int i=0; i<pVM->copy_to_shared.size(); ++i) {
      |                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~

Declared i as long unsigned int to avoid it.

…ed_audio

Replace deprecated VBoxManage command
Got a compiler warning in vboxwrapper.cpp

vboxwrapper.cpp:684:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  684 |     for (int i=0; i<pVM->copy_to_shared.size(); ++i) {
      |                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~

Declared i as long unsigned int to avoid it.
@computezrmle computezrmle changed the title Computezrmle avoid compiler warning Avoid compiler warning in vboxwrapper.cpp Mar 22, 2024
@AenBleidd AenBleidd added this to the Client/Manager 8.2.0 milestone Mar 22, 2024
@AenBleidd AenBleidd merged commit b2af307 into BOINC:master Mar 22, 2024
94 checks passed
@computezrmle computezrmle deleted the computezrmle-avoid_compiler_warning branch March 23, 2024 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants