blob: 607ddab8d6ccadda0101669b7cb5b906da9336a6 [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---
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05009 utils/makemhr/makemhr.cpp | 2 ++
Brad Bishop19323692019-04-05 15:28:33 -040010 1 file changed, 2 insertions(+)
11
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050012--- a/utils/makemhr/makemhr.cpp
13+++ b/utils/makemhr/makemhr.cpp
14@@ -161,6 +161,7 @@ enum ChannelIndex : uint {
Brad Bishop19323692019-04-05 15:28:33 -040015 * 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;
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050022@@ -199,6 +200,7 @@ static int StrSubst(const char *in, cons
Brad Bishop19323692019-04-05 15:28:33 -040023 return !truncated;
24 }
25
26+#pragma GCC diagnostic pop
27
28 /*********************
29 *** Math routines ***