Hi!

when including SQLite3 in our build, I noticed the following warnings:

        sqlite3.c: In function 'sqlite3WhereCodeOneLoopStart':
        sqlite3.c:138260:56: warning: suggest braces around empty body in an 
'if' statement [-Wempty-body]
             if( pWInfo->nLevel>1 ) sqlite3StackFree(db, pOrTab);
                                                        ^
        sqlite3.c: In function 'balance_nonroot':
        sqlite3.c:71175:47: warning: array subscript is above array bounds 
[-Warray-bounds]
                 pOld = iOld<nNew ? apNew[iOld] : apOld[iOld];
                                               ^
        sqlite3.c:71175:47: warning: array subscript is above array bounds 
[-Warray-bounds]
        sqlite3.c:71175:47: warning: array subscript is above array bounds 
[-Warray-bounds]

gcc version is "gcc (SUSE Linux) 4.8.5" on SLES12, sqlite3 version is 3.28.0. 

Considering sqlite3's extensive test-suite I suspect these warnings are
completely harmless, if they could be prevented within the sqlite3 code-base
that would be very nice though :)

Thanks and kind regards,
Alex

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to