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

c warning: function may return address of local variable #16

Open
t41372 opened this issue Mar 11, 2024 · 1 comment
Open

c warning: function may return address of local variable #16

t41372 opened this issue Mar 11, 2024 · 1 comment

Comments

@t41372
Copy link

t41372 commented Mar 11, 2024

I compiled the image and executed the sample you included at xeodou#34. I encountered the following warning in the terminal every time I ran the code—this occurred with both your sample and my own code, on my Mac and within the container.

Just to ask if this is expected behavior

# github.com/ValentinMontmirail/go-sqlcipher
sqlite3-binding.c: In function 'sqlite3SelectNew':
sqlite3-binding.c:130289:10: warning: function may return address of local variable [-Wreturn-local-addr]
130289 |   return pNew;
       |          ^~~~
sqlite3-binding.c:130249:10: note: declared here
130249 |   Select standin;
       |          ^~~~~~~
@yangguanmingmei
Copy link

good !

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

2 participants