Skip to content

Commit

Permalink
Ignore unused-parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lanthora committed Mar 9, 2024
1 parent 8422e3a commit e451e49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ixwebsocket/IXSocketOpenSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ namespace ix
/**
* Check whether a hostname matches a pattern
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern)
{
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
Expand All @@ -306,6 +308,7 @@ namespace ix

#endif
}
#pragma GCC diagnostic pop

bool SocketOpenSSL::openSSLCheckServerCert(SSL* ssl,
#if OPENSSL_VERSION_NUMBER < 0x10100000L
Expand Down

0 comments on commit e451e49

Please sign in to comment.