Skip to content

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

Description

@t41372

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;
       |          ^~~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions