blob: 8420386e36e91df82a68b1bf8a5d593080059ac9 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 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/makehrtf.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/utils/makehrtf.c b/utils/makehrtf.c
13index 0bd36849..0abe4252 100644
14--- a/utils/makehrtf.c
15+++ b/utils/makehrtf.c
16@@ -862,6 +862,7 @@ static int TrReadOperator(TokenReaderT *tr, const char *op)
17 * pattern string are replaced with the replacement string. The result is
18 * truncated if necessary.
19 */
20+#pragma GCC diagnostic ignored "-Wstringop-truncation"
21 static int StrSubst(const char *in, const char *pat, const char *rep, const size_t maxLen, char *out)
22 {
23 size_t inLen, patLen, repLen;
24@@ -900,6 +901,7 @@ static int StrSubst(const char *in, const char *pat, const char *rep, const size
25 return !truncated;
26 }
27
28+#pragma GCC diagnostic pop
29
30 /*********************
31 *** Math routines ***