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

gcc 10.2.0 complains getcwd() could return address of local variable #10

Open
axel-h opened this issue May 14, 2021 · 0 comments
Open

Comments

@axel-h
Copy link
Member

axel-h commented May 14, 2021

With gcc 10.2.0 I get this warning for getcwd()

.../libs/musllibc/src/unistd/getcwd.c: In function 'getcwd':
cc1: warning: function may return address of local variable [-Wreturn-local-addr]
...libs/musllibc/src/unistd/getcwd.c:9:7: note: declared here
    9 |  char tmp[PATH_MAX];
      |    

To be checked if this has been fixed in upstream musllibc already.

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