Fossil SCM

Fix harmless compiler warnings.

mistachkin 2015-05-23 18:12 trunk
Commit e3560443a21887996e94032088affabad0909f25
1 file changed -19
--- src/statrep.c
+++ src/statrep.c
@@ -36,24 +36,10 @@
3636
** accepted by /timeline?y=XXXX.
3737
*/
3838
static const char *statsReportTimelineYFlag = NULL;
3939
4040
41
-/*
42
-** Generate a submenu element with a single parameter change.
43
-*/
44
-static void statrep_submenu(
45
- HQuery *pUrl, /* Base URL */
46
- const char *zMenuName, /* Submenu name */
47
- const char *zParam, /* Parameter value to add or change */
48
- const char *zValue, /* Value of the new parameter */
49
- const char *zRemove /* Parameter to omit */
50
-){
51
- style_submenu_element(zMenuName, zMenuName, "%s",
52
- url_render(pUrl, zParam, zValue, zRemove, 0));
53
-}
54
-
5541
/*
5642
** Creates a TEMP VIEW named v_reports which is a wrapper around the
5743
** EVENT table filtered on event.type. It looks for the request
5844
** parameter 'type' (reminder: we "should" use 'y' for consistency
5945
** with /timeline, but /reports uses 'y' for the year) and expects it
@@ -192,11 +178,10 @@
192178
we change years while looping */
193179
int nEventsPerYear = 0; /* Total event count for the
194180
current year */
195181
char showYearTotal = 0; /* Flag telling us when to show
196182
the per-year event totals */
197
- Blob header = empty_blob; /* Page header text */
198183
int nMaxEvents = 1; /* for calculating length of graph
199184
bars. */
200185
int iterations = 0; /* number of weeks/months we iterate
201186
over */
202187
Blob userFilter = empty_blob; /* Optional user=johndoe query string */
@@ -565,18 +550,14 @@
565550
** or YYYY-MM. If zUserName is not NULL then the report is restricted to events
566551
** created by the named user account.
567552
*/
568553
static void stats_report_year_weeks(const char *zUserName){
569554
const char *zYear = P("y"); /* Year for which report shown */
570
- int isValidYear = 0; /* True if a valid year */
571
- int i = 0;
572555
Stmt q;
573556
int nMaxEvents = 1; /* max number of events for
574557
all rows. */
575558
int iterations = 0; /* # of active time periods. */
576
- int n = 0; /* Number of entries in azYear */
577
- char **azYear = 0; /* Year dropdown menu */
578559
int rowCount = 0;
579560
int total = 0;
580561
581562
stats_report_init_view();
582563
style_submenu_sql("y", "Year:",
583564
--- src/statrep.c
+++ src/statrep.c
@@ -36,24 +36,10 @@
36 ** accepted by /timeline?y=XXXX.
37 */
38 static const char *statsReportTimelineYFlag = NULL;
39
40
41 /*
42 ** Generate a submenu element with a single parameter change.
43 */
44 static void statrep_submenu(
45 HQuery *pUrl, /* Base URL */
46 const char *zMenuName, /* Submenu name */
47 const char *zParam, /* Parameter value to add or change */
48 const char *zValue, /* Value of the new parameter */
49 const char *zRemove /* Parameter to omit */
50 ){
51 style_submenu_element(zMenuName, zMenuName, "%s",
52 url_render(pUrl, zParam, zValue, zRemove, 0));
53 }
54
55 /*
56 ** Creates a TEMP VIEW named v_reports which is a wrapper around the
57 ** EVENT table filtered on event.type. It looks for the request
58 ** parameter 'type' (reminder: we "should" use 'y' for consistency
59 ** with /timeline, but /reports uses 'y' for the year) and expects it
@@ -192,11 +178,10 @@
192 we change years while looping */
193 int nEventsPerYear = 0; /* Total event count for the
194 current year */
195 char showYearTotal = 0; /* Flag telling us when to show
196 the per-year event totals */
197 Blob header = empty_blob; /* Page header text */
198 int nMaxEvents = 1; /* for calculating length of graph
199 bars. */
200 int iterations = 0; /* number of weeks/months we iterate
201 over */
202 Blob userFilter = empty_blob; /* Optional user=johndoe query string */
@@ -565,18 +550,14 @@
565 ** or YYYY-MM. If zUserName is not NULL then the report is restricted to events
566 ** created by the named user account.
567 */
568 static void stats_report_year_weeks(const char *zUserName){
569 const char *zYear = P("y"); /* Year for which report shown */
570 int isValidYear = 0; /* True if a valid year */
571 int i = 0;
572 Stmt q;
573 int nMaxEvents = 1; /* max number of events for
574 all rows. */
575 int iterations = 0; /* # of active time periods. */
576 int n = 0; /* Number of entries in azYear */
577 char **azYear = 0; /* Year dropdown menu */
578 int rowCount = 0;
579 int total = 0;
580
581 stats_report_init_view();
582 style_submenu_sql("y", "Year:",
583
--- src/statrep.c
+++ src/statrep.c
@@ -36,24 +36,10 @@
36 ** accepted by /timeline?y=XXXX.
37 */
38 static const char *statsReportTimelineYFlag = NULL;
39
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41 /*
42 ** Creates a TEMP VIEW named v_reports which is a wrapper around the
43 ** EVENT table filtered on event.type. It looks for the request
44 ** parameter 'type' (reminder: we "should" use 'y' for consistency
45 ** with /timeline, but /reports uses 'y' for the year) and expects it
@@ -192,11 +178,10 @@
178 we change years while looping */
179 int nEventsPerYear = 0; /* Total event count for the
180 current year */
181 char showYearTotal = 0; /* Flag telling us when to show
182 the per-year event totals */
 
183 int nMaxEvents = 1; /* for calculating length of graph
184 bars. */
185 int iterations = 0; /* number of weeks/months we iterate
186 over */
187 Blob userFilter = empty_blob; /* Optional user=johndoe query string */
@@ -565,18 +550,14 @@
550 ** or YYYY-MM. If zUserName is not NULL then the report is restricted to events
551 ** created by the named user account.
552 */
553 static void stats_report_year_weeks(const char *zUserName){
554 const char *zYear = P("y"); /* Year for which report shown */
 
 
555 Stmt q;
556 int nMaxEvents = 1; /* max number of events for
557 all rows. */
558 int iterations = 0; /* # of active time periods. */
 
 
559 int rowCount = 0;
560 int total = 0;
561
562 stats_report_init_view();
563 style_submenu_sql("y", "Year:",
564

Keyboard Shortcuts

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