From: Oleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) Date: Tue, 1 Nov 2022 12:46:07 +0000 (+0000) Subject: Pull request #3647: ports: enable checks in debug build only X-Git-Tag: 3.1.47.0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a729b09a847b08adb2caff24f04cf59c035a91b;p=thirdparty%2Fsnort3.git Pull request #3647: ports: enable checks in debug build only Merge in SNORT/snort3 from ~OSHUMEIK/snort3:fix_po_po2 to master Squashed commit of the following: commit 14b1e9922e153058837ad4eab1d0a80bccc5dd97 Author: Oleksii Shumeiko Date: Tue Nov 1 11:19:27 2022 +0200 ports: enable checks in debug build only --- diff --git a/src/ports/port_object2.cc b/src/ports/port_object2.cc index 467ccb251..9a1bb22a4 100644 --- a/src/ports/port_object2.cc +++ b/src/ports/port_object2.cc @@ -38,6 +38,7 @@ using namespace snort; +#ifndef NDEBUG static void check_structures() { using po1 = PortObject; @@ -55,6 +56,7 @@ static void check_structures() } static int _check_structures __attribute__((unused)) = (static_cast(check_structures()), 0); +#endif #define PO_EXTRA_RULE_CNT 25