Fossil SCM

Fix some compiler warnings.

drh 2011-10-10 20:02 trunk
Commit 496edc217677ff40da40eb964eb2452535b8dc85
2 files changed +2 -2 +2 -2
+2 -2
--- src/blob.c
+++ src/blob.c
@@ -330,12 +330,12 @@
330330
blob_is_init(pB);
331331
szA = blob_size(pA);
332332
szB = blob_size(pB);
333333
if( szA!=szB || szA==0 ) return 1;
334334
335
- buf1 = blob_buffer(pA);
336
- buf2 = blob_buffer(pB);
335
+ buf1 = (unsigned char*)blob_buffer(pA);
336
+ buf2 = (unsigned char*)blob_buffer(pB);
337337
338338
for( i=0; i<szA; i++ ){
339339
rc = rc | (buf1[i] ^ buf2[i]);
340340
}
341341
342342
--- src/blob.c
+++ src/blob.c
@@ -330,12 +330,12 @@
330 blob_is_init(pB);
331 szA = blob_size(pA);
332 szB = blob_size(pB);
333 if( szA!=szB || szA==0 ) return 1;
334
335 buf1 = blob_buffer(pA);
336 buf2 = blob_buffer(pB);
337
338 for( i=0; i<szA; i++ ){
339 rc = rc | (buf1[i] ^ buf2[i]);
340 }
341
342
--- src/blob.c
+++ src/blob.c
@@ -330,12 +330,12 @@
330 blob_is_init(pB);
331 szA = blob_size(pA);
332 szB = blob_size(pB);
333 if( szA!=szB || szA==0 ) return 1;
334
335 buf1 = (unsigned char*)blob_buffer(pA);
336 buf2 = (unsigned char*)blob_buffer(pB);
337
338 for( i=0; i<szA; i++ ){
339 rc = rc | (buf1[i] ^ buf2[i]);
340 }
341
342
+2 -2
--- src/th.c
+++ src/th.c
@@ -1817,12 +1817,12 @@
18171817
rc = thSubstWord(interp, pExpr->zValue, pExpr->nValue);
18181818
}else{
18191819
int eArgType = 0; /* Actual type of arguments */
18201820
18211821
/* Argument values */
1822
- int iLeft;
1823
- int iRight;
1822
+ int iLeft = 0;
1823
+ int iRight = 0;
18241824
double fLeft;
18251825
double fRight;
18261826
18271827
/* Left and right arguments as strings */
18281828
char *zLeft = 0; int nLeft = 0;
18291829
--- src/th.c
+++ src/th.c
@@ -1817,12 +1817,12 @@
1817 rc = thSubstWord(interp, pExpr->zValue, pExpr->nValue);
1818 }else{
1819 int eArgType = 0; /* Actual type of arguments */
1820
1821 /* Argument values */
1822 int iLeft;
1823 int iRight;
1824 double fLeft;
1825 double fRight;
1826
1827 /* Left and right arguments as strings */
1828 char *zLeft = 0; int nLeft = 0;
1829
--- src/th.c
+++ src/th.c
@@ -1817,12 +1817,12 @@
1817 rc = thSubstWord(interp, pExpr->zValue, pExpr->nValue);
1818 }else{
1819 int eArgType = 0; /* Actual type of arguments */
1820
1821 /* Argument values */
1822 int iLeft = 0;
1823 int iRight = 0;
1824 double fLeft;
1825 double fRight;
1826
1827 /* Left and right arguments as strings */
1828 char *zLeft = 0; int nLeft = 0;
1829

Keyboard Shortcuts

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