diff options
author | drh <drh@noemail.net> | 2019-07-13 16:15:23 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-07-13 16:15:23 +0000 |
commit | 8616cff6c8541e2837ccb7a2bc5792de5aba962f (patch) | |
tree | 670a894a9bf44ff72613b6bb293850c579e65eb3 /src | |
parent | 76fd7be3a31d466202bc6ee9026d02150fcc12da (diff) | |
download | sqlite-8616cff6c8541e2837ccb7a2bc5792de5aba962f.tar.gz sqlite-8616cff6c8541e2837ccb7a2bc5792de5aba962f.zip |
Remove unreachable "break" statements to silence harmless compiler warnings
from ICC.
FossilOrigin-Name: 0d7287e1bfdd5a392bf2fb17699e7cfd0b08bf61fab6cbf4b4bb347b3c4b4610
Diffstat (limited to 'src')
-rw-r--r-- | src/os_unix.c | 2 | ||||
-rw-r--r-- | src/vdbe.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index f20763e5b..103df1d19 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -7603,7 +7603,7 @@ static int proxyFileControl(sqlite3_file *id, int op, void *pArg){ assert( 0 ); /* The call assures that only valid opcodes are sent */ } } - /*NOTREACHED*/ + /*NOTREACHED*/ assert(0); return SQLITE_ERROR; } diff --git a/src/vdbe.c b/src/vdbe.c index 018ba97d3..8dead8cdf 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -3376,7 +3376,7 @@ case OP_AutoCommit: { rc = SQLITE_ERROR; goto abort_due_to_error; } - break; + /*NOTREACHED*/ assert(0); } /* Opcode: Transaction P1 P2 P3 P4 P5 @@ -4132,8 +4132,8 @@ case OP_SeekGT: { /* jump, in3, group */ if( (pIn3->flags & (MEM_Int|MEM_IntReal))==0 ){ if( (pIn3->flags & MEM_Real)==0 ){ if( (pIn3->flags & MEM_Null) || oc>=OP_SeekGE ){ - VdbeBranchTaken(1,2); goto jump_to_p2; - break; + VdbeBranchTaken(1,2); + goto jump_to_p2; }else{ rc = sqlite3BtreeLast(pC->uc.pCursor, &res); if( rc!=SQLITE_OK ) goto abort_due_to_error; |