From: Michael Altizer (mialtize) Date: Fri, 23 Oct 2020 16:02:07 +0000 (+0000) Subject: Merge pull request #2560 in SNORT/snort3 from ~OSERHIIE/snort3:wunused_private_field_... X-Git-Tag: 3.0.3-4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba5774545f558d41cfbae8d7abdea70b62b55c59;p=thirdparty%2Fsnort3.git Merge pull request #2560 in SNORT/snort3 from ~OSERHIIE/snort3:wunused_private_field_fix to master Squashed commit of the following: commit becffddb7df47b21e89766fee3c1d7b5eadd970c Author: Oleksandr Serhiienko Date: Wed Oct 21 20:06:58 2020 +0300 appid: fix -Wunused-private-field Clang warning in service_state.h --- diff --git a/src/network_inspectors/appid/service_state.h b/src/network_inspectors/appid/service_state.h index a29ef4d11..19fbe4432 100644 --- a/src/network_inspectors/appid/service_state.h +++ b/src/network_inspectors/appid/service_state.h @@ -35,7 +35,7 @@ class ServiceDetector; -class AppIdServiceStateKey; +struct AppIdServiceStateKey; class ServiceDiscoveryState; typedef std::map Map_t; @@ -161,9 +161,8 @@ public: PADDING_GUARD_BEGIN -class AppIdServiceStateKey +struct AppIdServiceStateKey { -public: AppIdServiceStateKey(const snort::SfIp* ip, IpProtocol proto, uint16_t port, int16_t group, uint16_t asid, bool decrypted) : ip(*ip), port(port), group(group), asid(asid), decrypted(decrypted), proto(proto) @@ -174,7 +173,6 @@ public: return memcmp((const uint8_t*) this, (const uint8_t*) &right, sizeof(*this)) < 0; } -private: snort::SfIp ip; uint16_t port; int16_t group;