GCC 11.1 warnings in 3.35.3
(1) By anonymous on 2021-04-29 12:23:01 [source]
These seem to be new with GCC 11.1:
sqlite3.c: In function ‘sqlite3DefaultRowEst’:
sqlite3.c:115780:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
115780 | if( pIdx->pPartIdxWhere!=0 ) x -= 10; assert( 10==sqlite3LogEst(2) );
| ^~
In file included from sqlite3.c:14233:
sqlite3.c:115780:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
115780 | if( pIdx->pPartIdxWhere!=0 ) x -= 10; assert( 10==sqlite3LogEst(2) );
| ^~~~~~
sqlite3.c: In function ‘whereSortingCost’:
sqlite3.c:152379:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
152379 | if( nRow>10 ) nRow -= 10; assert( 10==sqlite3LogEst(2) );
| ^~
In file included from sqlite3.c:14233:
sqlite3.c:152379:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
152379 | if( nRow>10 ) nRow -= 10; assert( 10==sqlite3LogEst(2) );
|