mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 19:57:48 +02:00
[[fallthrough]] if C++17 only
This commit is contained in:
parent
fe1724e7e6
commit
2ffe62ba41
5 changed files with 19 additions and 4 deletions
|
@ -433,7 +433,9 @@ namespace proxy
|
|||
break;
|
||||
case CMD_UDP:
|
||||
if (m_socksv == SOCKS5) break;
|
||||
#if (__cplusplus >= 201703L) // C++ 17 or higher
|
||||
[[fallthrough]];
|
||||
#endif
|
||||
default:
|
||||
LogPrint(eLogError, "SOCKS: invalid command: ", ((int)*sock_buff));
|
||||
SocksRequestFailed(SOCKS5_GEN_FAIL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue