On Mon, Feb 11, 2019 at 11:16 AM Jonas Bülow <jonas.bu...@gmail.com> wrote:

> > Just tried to update my sqlite version from 3.24 to 3.27.1 and the
> > compiler complained about a void function returning a value. I don't know
> > about C, but in C++ this is undefined behaviour and the clang compiler
> > sometimes generate an ud2 instruction for such code.
>

Not if the expression of the return is itself void, i.e.
sqlite3WalSnapshotUnlock() is also a void function. (haven't checked).
See https://en.cppreference.com/w/cpp/language/return which is explicit
about it, and even shows it in an example. --DD
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to