1From 07ef86e33ed6f7585f0dfaa1732ea17c816655a4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 14 Jan 2019 11:45:42 -0800
4Subject: [PATCH] makehrtf: Disable Wstringop-truncation
5
6Upstream-Status: Inappropriate [Should be fixed in code]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 utils/makemhr/makemhr.cpp | 2 ++
10 1 file changed, 2 insertions(+)
11
12--- a/utils/makemhr/makemhr.cpp
13+++ b/utils/makemhr/makemhr.cpp
14@@ -161,6 +161,7 @@ enum ChannelIndex : uint {
15  * pattern string are replaced with the replacement string.  The result is
16  * truncated if necessary.
17  */
18+#pragma GCC diagnostic ignored "-Wstringop-truncation"
19 static int StrSubst(const char *in, const char *pat, const char *rep, const size_t maxLen, char *out)
20 {
21     size_t inLen, patLen, repLen;
22@@ -199,6 +200,7 @@ static int StrSubst(const char *in, cons
23     return !truncated;
24 }
25
26+#pragma GCC diagnostic pop
27
28 /*********************
29  *** Math routines ***
30