1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix harmless compiler warnings, mostly caused by prior efforts to get static

analyzers to run without warnings.

FossilOrigin-Name: cddd3b382a118bb16be3a602ae711fe2c2a7d1c673dd30dd3977b67ee555e666
This commit is contained in:
drh
2021-10-05 18:59:05 +00:00
parent d7ace22d8c
commit 13ca72d011
5 changed files with 15 additions and 13 deletions

View File

@@ -1025,7 +1025,7 @@ static void strftimeFunc(
computeYMD_HMS(&x);
for(i=j=0; zFmt[i]; i++){
if( zFmt[i]!='%' ) continue;
if( j<i ) sqlite3_str_append(&sRes, zFmt+j, i-j);
if( j<i ) sqlite3_str_append(&sRes, zFmt+j, (int)(i-j));
i++;
j = i + 1;
switch( zFmt[i] ){
@@ -1101,7 +1101,7 @@ static void strftimeFunc(
}
}
}
if( j<i ) sqlite3_str_append(&sRes, zFmt+j, i-j);
if( j<i ) sqlite3_str_append(&sRes, zFmt+j, (int)(i-j));
sqlite3ResultStrAccum(context, &sRes);
}