From: Jason Ish Date: Mon, 16 Nov 2020 17:43:17 +0000 (-0600) Subject: rust/log: clarify comment in non-debug mode SCLogDebug X-Git-Tag: suricata-6.0.1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f81f3fbe90ae164a39e4d2e737584957030d1b8;p=thirdparty%2Fsuricata.git rust/log: clarify comment in non-debug mode SCLogDebug --- diff --git a/rust/src/log.rs b/rust/src/log.rs index 9d3a5ec2d4..3dcd91ef01 100644 --- a/rust/src/log.rs +++ b/rust/src/log.rs @@ -160,8 +160,10 @@ macro_rules!SCLogDebug { } } -// Release mode: ignore arguments -// Use a reference to avoid moving values. +// SCLogDebug variation to use when not compiled with debug support. +// +// This macro will only use the parameters passed to prevent warnings +// about unused variables, but is otherwise the equivalent to a no-op. #[cfg(not(feature = "debug"))] #[macro_export] macro_rules!SCLogDebug {