Skip to content

Commit 3b2758f

Browse files
authored
Merge pull request #212 from evoskuil/master
Fix non-SSL build unused parameter warnings.
2 parents 42c4a29 + 6c7d312 commit 3b2758f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/web/manager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,9 +1195,9 @@ bool manager::validate_origin(const std::string& origin)
11951195
origins_.end();
11961196
}
11971197

1198+
#ifdef WITH_MBEDTLS
11981199
bool manager::initialize_ssl(connection_ptr connection, bool listener)
11991200
{
1200-
#ifdef WITH_MBEDTLS
12011201
auto& context = connection->ssl_context();
12021202
auto& configuration = context.configuration;
12031203

@@ -1295,10 +1295,13 @@ bool manager::initialize_ssl(connection_ptr connection, bool listener)
12951295

12961296
context.enabled = true;
12971297
return context.enabled;
1298+
}
12981299
#else
1300+
bool manager::initialize_ssl(connection_ptr, bool)
1301+
{
12991302
return false;
1300-
#endif
13011303
}
1304+
#endif
13021305

13031306
} // namespace http
13041307
} // namespace protocol

0 commit comments

Comments
 (0)