Thanks for all the helpful suggestions. I finally made sure that there are no warnings in my code, but again was getting this warning from sqlite3:
Assuming signed overflow does not occur when assuming that (X - c) <= X is always true
which I fixed by adding the following CFLAG:
-fno-strict-overflow