]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: SCLogDebug is real nop when built as release 6197/head
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 6 May 2021 11:30:49 +0000 (13:30 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 14 Jun 2021 19:22:32 +0000 (21:22 +0200)
commitef5755338fa6404b60e7f90bfbaca039b2bfda1e
treed7ea1c1b7390a5fa463237b69cbdf2bc38f6b923
parent20e8f90981a1a0dca448b00c897c1c583513c25f
rust: SCLogDebug is real nop when built as release

Before, even if there were no outputs, all the arguments
were evaluated, which could turn expensive

All variables which are used only in certain build configurations
are now prefixed by underscore to avoid warnings
13 files changed:
rust/src/dcerpc/parser.rs
rust/src/filetracker.rs
rust/src/ftp/mod.rs
rust/src/ike/ikev2.rs
rust/src/log.rs
rust/src/nfs/nfs.rs
rust/src/nfs/nfs4.rs
rust/src/smb/dcerpc.rs
rust/src/smb/smb1.rs
rust/src/smb/smb2.rs
rust/src/smb/smb2_ioctl.rs
rust/src/snmp/snmp.rs
rust/src/ssh/ssh.rs