[Forensics-changes] [yara] 65/160: Fixed midrule at $8 of 'rule' has no declared type

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:19 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 7f2ee486d7664ffe3be0d499ddc737c0b3bb4d9f
Author: Michal Malik <root at devrandom.sk>
Date:   Sat Mar 28 16:58:49 2015 +0100

    Fixed midrule at $8 of 'rule' has no declared type
    
    Linux localhost 3.17.7-gentoo #1 SMP Wed Jan 7 09:38:05 CET 2015 i686 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel GNU/Linux
    Bison version: bison (GNU Bison) 2.4.3
    
    Error when compiling:
    
    /bin/sh ../ylwrap grammar.y y.tab.c grammar.c y.tab.h `echo grammar.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output grammar.output -- bison -y -d
    ./yara/libyara/grammar.y:229.9-10: $$ for the midrule at $8 of `rule' has no declared type
---
 libyara/grammar.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/grammar.y b/libyara/grammar.y
index b07e252..3903873 100644
--- a/libyara/grammar.y
+++ b/libyara/grammar.y
@@ -226,7 +226,7 @@ rule
 
         ERROR_IF(rule == NULL);
 
-        $$ = rule;
+        $<rule>$ = rule;
       }
       condition '}'
       {

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