Fossil SCM
Fix a compiler warning on windows.
Commit
c0c3e1749841704cdd8c2a061d5198d1544afe6d
Parent
d976b474e9d0815…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2406,10 +2406,11 @@ | ||
| 2406 | 2406 | cgi_handle_http_request(0); |
| 2407 | 2407 | } |
| 2408 | 2408 | process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList); |
| 2409 | 2409 | #else |
| 2410 | 2410 | /* Win32 implementation */ |
| 2411 | + (void)allowRepoList; /* Suppress warning */ | |
| 2411 | 2412 | if( isUiCmd ){ |
| 2412 | 2413 | zBrowser = db_get("web-browser", "start"); |
| 2413 | 2414 | if( zIpAddr ){ |
| 2414 | 2415 | zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr); |
| 2415 | 2416 | }else{ |
| 2416 | 2417 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2406,10 +2406,11 @@ | |
| 2406 | cgi_handle_http_request(0); |
| 2407 | } |
| 2408 | process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList); |
| 2409 | #else |
| 2410 | /* Win32 implementation */ |
| 2411 | if( isUiCmd ){ |
| 2412 | zBrowser = db_get("web-browser", "start"); |
| 2413 | if( zIpAddr ){ |
| 2414 | zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr); |
| 2415 | }else{ |
| 2416 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2406,10 +2406,11 @@ | |
| 2406 | cgi_handle_http_request(0); |
| 2407 | } |
| 2408 | process_one_web_page(zNotFound, glob_create(zFileGlob), allowRepoList); |
| 2409 | #else |
| 2410 | /* Win32 implementation */ |
| 2411 | (void)allowRepoList; /* Suppress warning */ |
| 2412 | if( isUiCmd ){ |
| 2413 | zBrowser = db_get("web-browser", "start"); |
| 2414 | if( zIpAddr ){ |
| 2415 | zBrowserCmd = mprintf("%s http://%s:%%d/ &", zBrowser, zIpAddr); |
| 2416 | }else{ |
| 2417 |