diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-25 15:28:09 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-12-26 19:52:55 -0800 |
commit | ab90611dd5e6473e0e309654d3efae45f7aa08ba (patch) | |
tree | 5667e62cd017949edbb7fbe1b200b927c5539454 | |
parent | 70902f79e8b796a10c1d84a0e4ebfb8f6f9f695d (diff) | |
download | meta-openembedded-ab90611dd5e6473e0e309654d3efae45f7aa08ba.tar.gz |
open-vm-tools: Ignore -Warray-bounds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch | 33 | ||||
-rw-r--r-- | meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch new file mode 100644 index 0000000000..95664e8552 --- /dev/null +++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From ac3f93ea087d3a5461fe57fe021d0fe9a959e13c Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 25 Dec 2019 15:25:02 -0800 | ||
4 | Subject: [PATCH] utilBacktrace: Ignore -Warray-bounds | ||
5 | |||
6 | This is new warning with gcc10, until its fixed ignore it like gcc<10 | ||
7 | did | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | open-vm-tools/lib/user/utilBacktrace.c | 5 +++++ | ||
13 | 1 file changed, 5 insertions(+) | ||
14 | |||
15 | diff --git a/open-vm-tools/lib/user/utilBacktrace.c b/open-vm-tools/lib/user/utilBacktrace.c | ||
16 | index b72340ad..97ca53f2 100644 | ||
17 | --- a/open-vm-tools/lib/user/utilBacktrace.c | ||
18 | +++ b/open-vm-tools/lib/user/utilBacktrace.c | ||
19 | @@ -517,6 +517,11 @@ Util_BacktraceWithFunc(int bugNr, // IN: | ||
20 | } else { | ||
21 | outFunc(outFuncData, "Backtrace for bugNr=%d\n",bugNr); | ||
22 | } | ||
23 | +#pragma GCC diagnostic push | ||
24 | +#pragma GCC diagnostic ignored "-Warray-bounds" | ||
25 | + | ||
26 | Util_BacktraceFromPointerWithFunc(&x[-2], outFunc, outFuncData); | ||
27 | +#pragma GCC diagnostic pop | ||
28 | #endif | ||
29 | } | ||
30 | + | ||
31 | -- | ||
32 | 2.24.1 | ||
33 | |||
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb index 9e4aa4881a..eda77c2060 100644 --- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb +++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb | |||
@@ -41,6 +41,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ | |||
41 | file://0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch;patchdir=.. \ | 41 | file://0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch;patchdir=.. \ |
42 | file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ | 42 | file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ |
43 | file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ | 43 | file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ |
44 | file://0001-utilBacktrace-Ignore-Warray-bounds.patch;patchdir=.. \ | ||
44 | " | 45 | " |
45 | 46 | ||
46 | SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987" | 47 | SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987" |