Fossil SCM
Fix "unused variable" compiler warnings when building without OpenSSL.
Commit
c1350c8a44236b401b7d6dc599b2171ffeb2edd344bd54e3dd2cfc1d31ca8200
Parent
c5c7dd5ffbf424b…
1 file changed
+2
+2
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -947,12 +947,14 @@ | ||
| 947 | 947 | "DELETE FROM config WHERE name GLOB 'ssl-*';" |
| 948 | 948 | ); |
| 949 | 949 | db_protect_pop(); |
| 950 | 950 | }else |
| 951 | 951 | if( strncmp("show",zCmd,nCmd)==0 ){ |
| 952 | +#if defined(FOSSIL_ENABLE_SSL) | |
| 952 | 953 | const char *zName, *zValue; |
| 953 | 954 | const char *zUsed = 0; /* Trust store location actually used */ |
| 955 | +#endif | |
| 954 | 956 | size_t nName; |
| 955 | 957 | Stmt q; |
| 956 | 958 | int verbose = find_option("verbose","v",0)!=0; |
| 957 | 959 | verify_all_options(); |
| 958 | 960 | |
| 959 | 961 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -947,12 +947,14 @@ | |
| 947 | "DELETE FROM config WHERE name GLOB 'ssl-*';" |
| 948 | ); |
| 949 | db_protect_pop(); |
| 950 | }else |
| 951 | if( strncmp("show",zCmd,nCmd)==0 ){ |
| 952 | const char *zName, *zValue; |
| 953 | const char *zUsed = 0; /* Trust store location actually used */ |
| 954 | size_t nName; |
| 955 | Stmt q; |
| 956 | int verbose = find_option("verbose","v",0)!=0; |
| 957 | verify_all_options(); |
| 958 | |
| 959 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -947,12 +947,14 @@ | |
| 947 | "DELETE FROM config WHERE name GLOB 'ssl-*';" |
| 948 | ); |
| 949 | db_protect_pop(); |
| 950 | }else |
| 951 | if( strncmp("show",zCmd,nCmd)==0 ){ |
| 952 | #if defined(FOSSIL_ENABLE_SSL) |
| 953 | const char *zName, *zValue; |
| 954 | const char *zUsed = 0; /* Trust store location actually used */ |
| 955 | #endif |
| 956 | size_t nName; |
| 957 | Stmt q; |
| 958 | int verbose = find_option("verbose","v",0)!=0; |
| 959 | verify_all_options(); |
| 960 | |
| 961 |