Sorry, I missed some information. It is the MSVC v15.5 compiler that
complains:

sqlite3.c(58167): error C2220: warning treated as error - no 'object' file
generated [c:\work\sqlite-amalgamation-3270100\sqlite3.vcxproj]
sqlite3.c(58167): warning C4098: 'sqlite3PagerSnapshotUnlock': 'void'
function returning a value
[c:\work\sqlite-amalgamation-3270100\sqlite3.vcxproj]
Done Building Project "c:\sqlite-amalgamation-3270100\sqlite3.vcxproj"
(default targets) -- FAILED.


On Mon, Feb 11, 2019 at 11:21 AM Dominique Devienne <ddevie...@gmail.com>
wrote:

> 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
>
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to