Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From 07ef86e33ed6f7585f0dfaa1732ea17c816655a4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 14 Jan 2019 11:45:42 -0800 |
| 4 | Subject: [PATCH] makehrtf: Disable Wstringop-truncation |
| 5 | |
| 6 | Upstream-Status: Inappropriate [Should be fixed in code] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 9 | utils/makemhr/makemhr.cpp | 2 ++ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | 1 file changed, 2 insertions(+) |
| 11 | |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 12 | --- a/utils/makemhr/makemhr.cpp |
| 13 | +++ b/utils/makemhr/makemhr.cpp |
| 14 | @@ -161,6 +161,7 @@ enum ChannelIndex : uint { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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; |
Andrew Geissler | bffdb3e | 2020-08-21 16:13:29 -0500 | [diff] [blame^] | 22 | @@ -199,6 +200,7 @@ static int StrSubst(const char *in, cons |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | return !truncated; |
| 24 | } |
| 25 | |
| 26 | +#pragma GCC diagnostic pop |
| 27 | |
| 28 | /********************* |
| 29 | *** Math routines *** |