diff options
Diffstat (limited to 'meta-multimedia/recipes-multimedia/openal/openal-soft/0002-makehrtf-Disable-Wstringop-truncation.patch')
-rw-r--r-- | meta-multimedia/recipes-multimedia/openal/openal-soft/0002-makehrtf-Disable-Wstringop-truncation.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/openal/openal-soft/0002-makehrtf-Disable-Wstringop-truncation.patch b/meta-multimedia/recipes-multimedia/openal/openal-soft/0002-makehrtf-Disable-Wstringop-truncation.patch new file mode 100644 index 000000000..8420386e3 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/openal/openal-soft/0002-makehrtf-Disable-Wstringop-truncation.patch | |||
@@ -0,0 +1,31 @@ | |||
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 *** | ||