From 2f81f3fbe90ae164a39e4d2e737584957030d1b8 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 16 Nov 2020 11:43:17 -0600 Subject: [PATCH] rust/log: clarify comment in non-debug mode SCLogDebug --- rust/src/log.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/src/log.rs b/rust/src/log.rs index 9d3a5ec2d..3dcd91ef0 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 { -- 2.39.5