Skip to content

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

@t41372

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

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