Fossil SCM

Fix compiler warnings.

mistachkin 2015-05-12 04:23 trunk
Commit 57897a4189b69aba5f1c67effb84a99b42b4356d
--- src/piechart.c
+++ src/piechart.c
@@ -110,11 +110,10 @@
110110
double d1; /* radius to x4,y4 */
111111
const char *zAnc; /* Anchor point for text */
112112
double a1 = 0.0; /* Angle for first edge of slice */
113113
double a2; /* Angle for second edge */
114114
double a3; /* Angle at middle of slice */
115
- int rot; /* Text rotation angle */
116115
unsigned char h; /* Hue */
117116
const char *zClr; /* Color */
118117
int l; /* Large arc flag */
119118
int j; /* Wedge number */
120119
double rTotal; /* Total piechart.amt */
121120
--- src/piechart.c
+++ src/piechart.c
@@ -110,11 +110,10 @@
110 double d1; /* radius to x4,y4 */
111 const char *zAnc; /* Anchor point for text */
112 double a1 = 0.0; /* Angle for first edge of slice */
113 double a2; /* Angle for second edge */
114 double a3; /* Angle at middle of slice */
115 int rot; /* Text rotation angle */
116 unsigned char h; /* Hue */
117 const char *zClr; /* Color */
118 int l; /* Large arc flag */
119 int j; /* Wedge number */
120 double rTotal; /* Total piechart.amt */
121
--- src/piechart.c
+++ src/piechart.c
@@ -110,11 +110,10 @@
110 double d1; /* radius to x4,y4 */
111 const char *zAnc; /* Anchor point for text */
112 double a1 = 0.0; /* Angle for first edge of slice */
113 double a2; /* Angle for second edge */
114 double a3; /* Angle at middle of slice */
 
115 unsigned char h; /* Hue */
116 const char *zClr; /* Color */
117 int l; /* Large arc flag */
118 int j; /* Wedge number */
119 double rTotal; /* Total piechart.amt */
120
+1 -1
--- src/rebuild.c
+++ src/rebuild.c
@@ -543,11 +543,11 @@
543543
** See also: deconstruct, reconstruct
544544
*/
545545
void rebuild_database(void){
546546
int forceFlag;
547547
int randomizeFlag;
548
- int errCnt;
548
+ int errCnt = 0;
549549
int omitVerify;
550550
int doClustering;
551551
const char *zPagesize;
552552
int newPagesize = 0;
553553
int activateWal;
554554
--- src/rebuild.c
+++ src/rebuild.c
@@ -543,11 +543,11 @@
543 ** See also: deconstruct, reconstruct
544 */
545 void rebuild_database(void){
546 int forceFlag;
547 int randomizeFlag;
548 int errCnt;
549 int omitVerify;
550 int doClustering;
551 const char *zPagesize;
552 int newPagesize = 0;
553 int activateWal;
554
--- src/rebuild.c
+++ src/rebuild.c
@@ -543,11 +543,11 @@
543 ** See also: deconstruct, reconstruct
544 */
545 void rebuild_database(void){
546 int forceFlag;
547 int randomizeFlag;
548 int errCnt = 0;
549 int omitVerify;
550 int doClustering;
551 const char *zPagesize;
552 int newPagesize = 0;
553 int activateWal;
554
-1
--- src/stat.c
+++ src/stat.c
@@ -380,11 +380,10 @@
380380
** WEBPAGE: repo-tabsize
381381
**
382382
** Show relative sizes of tables in the repository database.
383383
*/
384384
void repo_tabsize_page(void){
385
- Stmt q;
386385
int nPageFree;
387386
sqlite3_int64 fsize;
388387
char zBuf[100];
389388
390389
login_check_credentials();
391390
--- src/stat.c
+++ src/stat.c
@@ -380,11 +380,10 @@
380 ** WEBPAGE: repo-tabsize
381 **
382 ** Show relative sizes of tables in the repository database.
383 */
384 void repo_tabsize_page(void){
385 Stmt q;
386 int nPageFree;
387 sqlite3_int64 fsize;
388 char zBuf[100];
389
390 login_check_credentials();
391
--- src/stat.c
+++ src/stat.c
@@ -380,11 +380,10 @@
380 ** WEBPAGE: repo-tabsize
381 **
382 ** Show relative sizes of tables in the repository database.
383 */
384 void repo_tabsize_page(void){
 
385 int nPageFree;
386 sqlite3_int64 fsize;
387 char zBuf[100];
388
389 login_check_credentials();
390

Keyboard Shortcuts

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