Skip to content

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
@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

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants