Fossil SCM

Fix a couple of -Wextra compiler warnings.

danield 2023-02-08 13:35 trunk
Commit 3afeef3f9abbdcef23874b8e13b52198416df695c2fa34dd2285c1edae15ffd4
3 files changed +3 -2 +1 -1 +1 -1
+3 -2
--- src/foci.c
+++ src/foci.c
@@ -263,14 +263,15 @@
263263
0, /* xUpdate */
264264
0, /* xBegin */
265265
0, /* xSync */
266266
0, /* xCommit */
267267
0, /* xRollback */
268
- 0, /* xFindMethod */
268
+ 0, /* xFindFunction */
269269
0, /* xRename */
270270
0, /* xSavepoint */
271271
0, /* xRelease */
272
- 0 /* xRollbackTo */
272
+ 0, /* xRollbackTo */
273
+ 0 /* xShadowName */
273274
};
274275
sqlite3_create_module(db, "files_of_checkin", &foci_module, 0);
275276
return SQLITE_OK;
276277
}
277278
--- src/foci.c
+++ src/foci.c
@@ -263,14 +263,15 @@
263 0, /* xUpdate */
264 0, /* xBegin */
265 0, /* xSync */
266 0, /* xCommit */
267 0, /* xRollback */
268 0, /* xFindMethod */
269 0, /* xRename */
270 0, /* xSavepoint */
271 0, /* xRelease */
272 0 /* xRollbackTo */
 
273 };
274 sqlite3_create_module(db, "files_of_checkin", &foci_module, 0);
275 return SQLITE_OK;
276 }
277
--- src/foci.c
+++ src/foci.c
@@ -263,14 +263,15 @@
263 0, /* xUpdate */
264 0, /* xBegin */
265 0, /* xSync */
266 0, /* xCommit */
267 0, /* xRollback */
268 0, /* xFindFunction */
269 0, /* xRename */
270 0, /* xSavepoint */
271 0, /* xRelease */
272 0, /* xRollbackTo */
273 0 /* xShadowName */
274 };
275 sqlite3_create_module(db, "files_of_checkin", &foci_module, 0);
276 return SQLITE_OK;
277 }
278
+1 -1
--- src/patch.c
+++ src/patch.c
@@ -28,11 +28,11 @@
2828
char *fossil_hostname(void){
2929
FILE *in;
3030
char zBuf[200];
3131
in = popen("hostname","r");
3232
if( in ){
33
- size_t n = fread(zBuf, 1, sizeof(zBuf)-1, in);
33
+ int n = fread(zBuf, 1, sizeof(zBuf)-1, in);
3434
while( n>0 && fossil_isspace(zBuf[n-1]) ){ n--; }
3535
if( n<0 ) n = 0;
3636
zBuf[n] = 0;
3737
pclose(in);
3838
return fossil_strdup(zBuf);
3939
--- src/patch.c
+++ src/patch.c
@@ -28,11 +28,11 @@
28 char *fossil_hostname(void){
29 FILE *in;
30 char zBuf[200];
31 in = popen("hostname","r");
32 if( in ){
33 size_t n = fread(zBuf, 1, sizeof(zBuf)-1, in);
34 while( n>0 && fossil_isspace(zBuf[n-1]) ){ n--; }
35 if( n<0 ) n = 0;
36 zBuf[n] = 0;
37 pclose(in);
38 return fossil_strdup(zBuf);
39
--- src/patch.c
+++ src/patch.c
@@ -28,11 +28,11 @@
28 char *fossil_hostname(void){
29 FILE *in;
30 char zBuf[200];
31 in = popen("hostname","r");
32 if( in ){
33 int n = fread(zBuf, 1, sizeof(zBuf)-1, in);
34 while( n>0 && fossil_isspace(zBuf[n-1]) ){ n--; }
35 if( n<0 ) n = 0;
36 zBuf[n] = 0;
37 pclose(in);
38 return fossil_strdup(zBuf);
39
+1 -1
--- tools/mkindex.c
+++ tools/mkindex.c
@@ -514,11 +514,11 @@
514514
);
515515
if( aEntry[i].zIf ){
516516
printf("#endif\n");
517517
}
518518
}
519
- printf("{0,0,0,0,0,0}};\n");
519
+ printf("{0,0,0,0,0,0,0}};\n");
520520
521521
}
522522
523523
/*
524524
** Process a single file of input
525525
--- tools/mkindex.c
+++ tools/mkindex.c
@@ -514,11 +514,11 @@
514 );
515 if( aEntry[i].zIf ){
516 printf("#endif\n");
517 }
518 }
519 printf("{0,0,0,0,0,0}};\n");
520
521 }
522
523 /*
524 ** Process a single file of input
525
--- tools/mkindex.c
+++ tools/mkindex.c
@@ -514,11 +514,11 @@
514 );
515 if( aEntry[i].zIf ){
516 printf("#endif\n");
517 }
518 }
519 printf("{0,0,0,0,0,0,0}};\n");
520
521 }
522
523 /*
524 ** Process a single file of input
525

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button