Compile Error: SQLITE_ENABLE_MULTITHREADED_CHECKS and SQLITE_ENABLE_API_ARMOR defined concurrently

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compile Error: SQLITE_ENABLE_MULTITHREADED_CHECKS and SQLITE_ENABLE_API_ARMOR defined concurrently

Keith Medcalf

Both are fine when either is defined independently (or neither is defined) but when both are defined concurrently there are compiler errors in function checkMutexFree:

sqlite3x.c: In function 'checkMutexFree':
sqlite3x.c:23521:8: error: dereferencing pointer to incomplete type 'sqlite3_mutex {aka struct sqlite3_mutex}'
   if( p->iType<2 ){
        ^~
sqlite3x.c:23529:3: error: expected '}' before 'else'
   else{
   ^~~~

** Note:  The line numbers are not the same as those in the default amalgamation due to local changes.  However, the function checkMutexFree is not changed from the default.

---
The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume.





_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: Compile Error: SQLITE_ENABLE_MULTITHREADED_CHECKS and SQLITE_ENABLE_API_ARMOR defined concurrently

Dan Kennedy-4
On 12/02/2017 11:59 PM, Keith Medcalf wrote:

> Both are fine when either is defined independently (or neither is defined) but when both are defined concurrently there are compiler errors in function checkMutexFree:
>
> sqlite3x.c: In function 'checkMutexFree':
> sqlite3x.c:23521:8: error: dereferencing pointer to incomplete type 'sqlite3_mutex {aka struct sqlite3_mutex}'
>     if( p->iType<2 ){
>          ^~
> sqlite3x.c:23529:3: error: expected '}' before 'else'
>     else{
>     ^~~~
>
> ** Note:  The line numbers are not the same as those in the default amalgamation due to local changes.  However, the function checkMutexFree is not changed from the default.

Thanks for reporting this. Now fixed here:

   http://www.sqlite.org/src/info/0342ce510d2063a6

Dan.

_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users