Skip to content

Replace getcwd() with boinc_getcwd() #6132

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

Merged

Conversation

computezrmle
Copy link
Contributor

Compiling vboxwrapper with warnings enabled prints this:

vboxwrapper.cpp: In function ‘int main(int, char**)’:
vboxwrapper.cpp:511:11: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  511 |     getcwd(path, sizeof(path));
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~

To get rid of the warning replace getcwd() with boinc_getcwd().

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@AenBleidd AenBleidd merged commit 0d73b17 into BOINC:master Mar 3, 2025
153 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Merged in Client/Manager Mar 3, 2025
@computezrmle computezrmle deleted the replace__getcwd__with__boinc_getcwd branch March 3, 2025 14:06
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