When compiling fossil's trunk with Cygwin I get:
...
./src/shell.c: In function ‘integerValue’:
./src/shell.c:1567:3: warning: array subscript has type ‘char’
[-Wchar-subscripts]
./src/shell.c: In function ‘integerValue’:
./src/shell.c:1571:13: warning: comparison between signed and unsigned
integer expressions

Proposed patch (for SQLite), see below.

Regards,
          Jan Nijtmans

Index: src/shell.c
==================================================================
--- src/shell.c
+++ src/shell.c
@@ -1562,15 +1562,15 @@
     isNeg = 1;
     zArg++;
   }else if( zArg[0]=='+' ){
     zArg++;
   }
-  while( isdigit(zArg[0]) ){
+  while( IsDigit(zArg[0]) ){
     v = v*10 + zArg[0] - '0';
     zArg++;
   }
-  for(i=0; i<sizeof(aMult)/sizeof(aMult[0]); i++){
+  for(i=0; i<(int)(sizeof(aMult)/sizeof(aMult[0])); i++){
     if( sqlite3_stricmp(aMult[i].zSuffix, zArg)==0 ){
       v *= aMult[i].iMult;
       break;
     }
   }
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to