[Forensics-changes] [yara] 305/368: Fix unused variable warning

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:30:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit 4036bd63104521373ccba5dc6ad05720ac69329d
Author: plusvic <plusvic at gmail.com>
Date:   Tue Jun 7 10:23:48 2016 -0700

    Fix unused variable warning
---
 libyara/lexer.c | 2 ++
 libyara/lexer.l | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/libyara/lexer.c b/libyara/lexer.c
index 77ca8ac..f8e0f4e 100644
--- a/libyara/lexer.c
+++ b/libyara/lexer.c
@@ -1366,7 +1366,9 @@ YY_RULE_SETUP
   char            buffer[1024];
   char            *current_file_name;
   char            *s = NULL;
+  #ifdef _WIN32
   char            *b = NULL;
+  #endif
   char            *f;
   FILE*           fh;
 
diff --git a/libyara/lexer.l b/libyara/lexer.l
index 87753c9..53e0da7 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -171,7 +171,9 @@ include[ \t]+\"         {
   char            buffer[1024];
   char            *current_file_name;
   char            *s = NULL;
+  #ifdef _WIN32
   char            *b = NULL;
+  #endif
   char            *f;
   FILE*           fh;
 

-- 
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