Fossil SCM

Minor gcc compiler warnings

jan.nijtmans 2017-04-12 11:39 trunk
Commit a9d1d46f659937412cc37196a64ed52c5bd3a1cdb1d5f0b8ba723a6dc07d48db
1 file changed +1 -2
+1 -2
--- src/export.c
+++ src/export.c
@@ -485,11 +485,10 @@
485485
**
486486
** See also: import
487487
*/
488488
void export_cmd(void){
489489
Stmt q, q2, q3;
490
- int i;
491490
Bag blobs, vers;
492491
unsigned int unused_mark = 1;
493492
const char *markfile_in;
494493
const char *markfile_out;
495494
@@ -718,11 +717,11 @@
718717
printf("\nfrom %s\n", zMark);
719718
free(zMark);
720719
printf("tagger");
721720
print_person(zUser);
722721
printf(" %s +0000\n", zSecSince1970);
723
- printf("data %d\n", zValue==NULL?0:strlen(zValue)+1);
722
+ printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1);
724723
if( zValue!=NULL ) printf("%s\n",zValue);
725724
}
726725
db_finalize(&q);
727726
728727
if( markfile_out!=0 ){
729728
--- src/export.c
+++ src/export.c
@@ -485,11 +485,10 @@
485 **
486 ** See also: import
487 */
488 void export_cmd(void){
489 Stmt q, q2, q3;
490 int i;
491 Bag blobs, vers;
492 unsigned int unused_mark = 1;
493 const char *markfile_in;
494 const char *markfile_out;
495
@@ -718,11 +717,11 @@
718 printf("\nfrom %s\n", zMark);
719 free(zMark);
720 printf("tagger");
721 print_person(zUser);
722 printf(" %s +0000\n", zSecSince1970);
723 printf("data %d\n", zValue==NULL?0:strlen(zValue)+1);
724 if( zValue!=NULL ) printf("%s\n",zValue);
725 }
726 db_finalize(&q);
727
728 if( markfile_out!=0 ){
729
--- src/export.c
+++ src/export.c
@@ -485,11 +485,10 @@
485 **
486 ** See also: import
487 */
488 void export_cmd(void){
489 Stmt q, q2, q3;
 
490 Bag blobs, vers;
491 unsigned int unused_mark = 1;
492 const char *markfile_in;
493 const char *markfile_out;
494
@@ -718,11 +717,11 @@
717 printf("\nfrom %s\n", zMark);
718 free(zMark);
719 printf("tagger");
720 print_person(zUser);
721 printf(" %s +0000\n", zSecSince1970);
722 printf("data %d\n", zValue==NULL?0:(int)strlen(zValue)+1);
723 if( zValue!=NULL ) printf("%s\n",zValue);
724 }
725 db_finalize(&q);
726
727 if( markfile_out!=0 ){
728

Keyboard Shortcuts

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