[Forensics-changes] [yara] 188/192: Disable warning due to zero length array in Microsoft's compiler

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:32:05 UTC 2017


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

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

commit f3e12ec15d48481e8c03ca987fc88c8edb00218d
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Fri May 19 13:36:38 2017 +0200

    Disable warning due to zero length array in Microsoft's compiler
---
 libyara/include/yara/re.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libyara/include/yara/re.h b/libyara/include/yara/re.h
index eb668e6..b421e9b 100644
--- a/libyara/include/yara/re.h
+++ b/libyara/include/yara/re.h
@@ -140,12 +140,23 @@ struct RE_AST
 };
 
 
+// Disable warning due to zero length array in Microsoft's compiler
+
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:4200)
+#endif
+
 struct RE
 {
   uint32_t flags;
   uint8_t code[0];
 };
 
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
 
 struct RE_ERROR
 {

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