Fossil SCM

Fix "unused variable" compiler warnings when building without OpenSSL.

drh 2022-01-26 14:32 trunk
Commit c1350c8a44236b401b7d6dc599b2171ffeb2edd344bd54e3dd2cfc1d31ca8200
1 file changed +2
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -947,12 +947,14 @@
947947
"DELETE FROM config WHERE name GLOB 'ssl-*';"
948948
);
949949
db_protect_pop();
950950
}else
951951
if( strncmp("show",zCmd,nCmd)==0 ){
952
+#if defined(FOSSIL_ENABLE_SSL)
952953
const char *zName, *zValue;
953954
const char *zUsed = 0; /* Trust store location actually used */
955
+#endif
954956
size_t nName;
955957
Stmt q;
956958
int verbose = find_option("verbose","v",0)!=0;
957959
verify_all_options();
958960
959961
--- 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

Keyboard Shortcuts

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