Fossil SCM
Fix harmless compiler warnings.
Commit
e3560443a21887996e94032088affabad0909f25
Parent
bdc2f11d289e204…
1 file changed
-19
-19
| --- src/statrep.c | ||
| +++ src/statrep.c | ||
| @@ -36,24 +36,10 @@ | ||
| 36 | 36 | ** accepted by /timeline?y=XXXX. |
| 37 | 37 | */ |
| 38 | 38 | static const char *statsReportTimelineYFlag = NULL; |
| 39 | 39 | |
| 40 | 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 | 41 | /* |
| 56 | 42 | ** Creates a TEMP VIEW named v_reports which is a wrapper around the |
| 57 | 43 | ** EVENT table filtered on event.type. It looks for the request |
| 58 | 44 | ** parameter 'type' (reminder: we "should" use 'y' for consistency |
| 59 | 45 | ** with /timeline, but /reports uses 'y' for the year) and expects it |
| @@ -192,11 +178,10 @@ | ||
| 192 | 178 | we change years while looping */ |
| 193 | 179 | int nEventsPerYear = 0; /* Total event count for the |
| 194 | 180 | current year */ |
| 195 | 181 | char showYearTotal = 0; /* Flag telling us when to show |
| 196 | 182 | the per-year event totals */ |
| 197 | - Blob header = empty_blob; /* Page header text */ | |
| 198 | 183 | int nMaxEvents = 1; /* for calculating length of graph |
| 199 | 184 | bars. */ |
| 200 | 185 | int iterations = 0; /* number of weeks/months we iterate |
| 201 | 186 | over */ |
| 202 | 187 | Blob userFilter = empty_blob; /* Optional user=johndoe query string */ |
| @@ -565,18 +550,14 @@ | ||
| 565 | 550 | ** or YYYY-MM. If zUserName is not NULL then the report is restricted to events |
| 566 | 551 | ** created by the named user account. |
| 567 | 552 | */ |
| 568 | 553 | static void stats_report_year_weeks(const char *zUserName){ |
| 569 | 554 | const char *zYear = P("y"); /* Year for which report shown */ |
| 570 | - int isValidYear = 0; /* True if a valid year */ | |
| 571 | - int i = 0; | |
| 572 | 555 | Stmt q; |
| 573 | 556 | int nMaxEvents = 1; /* max number of events for |
| 574 | 557 | all rows. */ |
| 575 | 558 | int iterations = 0; /* # of active time periods. */ |
| 576 | - int n = 0; /* Number of entries in azYear */ | |
| 577 | - char **azYear = 0; /* Year dropdown menu */ | |
| 578 | 559 | int rowCount = 0; |
| 579 | 560 | int total = 0; |
| 580 | 561 | |
| 581 | 562 | stats_report_init_view(); |
| 582 | 563 | style_submenu_sql("y", "Year:", |
| 583 | 564 |
| --- 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 |