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 | --- |
| 9 | utils/makehrtf.c | 2 ++ |
| 10 | 1 file changed, 2 insertions(+) |
| 11 | |
| 12 | diff --git a/utils/makehrtf.c b/utils/makehrtf.c |
| 13 | index 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 *** |