[Forensics-changes] [yara] 158/160: Avoid warning due to unused variable when profiling is disabled
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:29:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.4.0
in repository yara.
commit a7a2319e1868e89b25795ce6414c7feda9d0129e
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu Jun 18 14:36:07 2015 +0200
Avoid warning due to unused variable when profiling is disabled
---
libyara/exec.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libyara/exec.c b/libyara/exec.c
index 5b6f89e..1147343 100644
--- a/libyara/exec.c
+++ b/libyara/exec.c
@@ -166,7 +166,10 @@ int yr_execute_code(
STACK_ITEM r2;
STACK_ITEM r3;
+ #ifdef PROFILING_ENABLED
YR_RULE* current_rule = NULL;
+ #endif
+
YR_RULE* rule;
YR_MATCH* match;
YR_OBJECT_FUNCTION* function;
@@ -401,7 +404,9 @@ int yr_execute_code(
break;
case OP_INIT_RULE:
+ #ifdef PROFILING_ENABLED
current_rule = *(YR_RULE**)(ip + 1);
+ #endif
ip += sizeof(uint64_t);
break;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list