diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-24 10:26:16 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-04-26 20:14:14 +0200 |
commit | 91fa3724d3e3fac8503b56627ab8cd6cad3a5d07 (patch) | |
tree | 0a1da00604faa0c2a35f1178e586a62cb456207c /meta-oe/recipes-devtools/msgpack | |
parent | e36e010400803031723379f0fea3adc3e1c3a4ef (diff) | |
download | meta-openembedded-91fa3724d3e3fac8503b56627ab8cd6cad3a5d07.tar.gz |
msgpack-c: Drop unused patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/msgpack')
-rw-r--r-- | meta-oe/recipes-devtools/msgpack/msgpack-c/304ff96d04599401172568d042723ff507e78cc3.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/meta-oe/recipes-devtools/msgpack/msgpack-c/304ff96d04599401172568d042723ff507e78cc3.patch b/meta-oe/recipes-devtools/msgpack/msgpack-c/304ff96d04599401172568d042723ff507e78cc3.patch deleted file mode 100644 index b8b3d3187..000000000 --- a/meta-oe/recipes-devtools/msgpack/msgpack-c/304ff96d04599401172568d042723ff507e78cc3.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 304ff96d04599401172568d042723ff507e78cc3 Mon Sep 17 00:00:00 2001 | ||
2 | From: James McCoy <jamessan@debian.org> | ||
3 | Date: Thu, 13 Apr 2017 11:38:45 -0400 | ||
4 | Subject: [PATCH] Comment the intentional fallthrough to default from | ||
5 | _fixed_trail_again | ||
6 | |||
7 | GCC 7 added a new diagnostic, -Wimplicit-fallthrough, which is enabled | ||
8 | with -Wextra that warns about implicitly falling through a case | ||
9 | statement. | ||
10 | |||
11 | [ 4%] Building C object CMakeFiles/msgpackc-static.dir/src/unpack.c.o | ||
12 | /usr/lib/gcc-snapshot/bin/gcc -I/home/jamessan/src/msgpack-c/. -I/home/jamessan/src/msgpack-c/include -I/home/jamessan/src/msgpack-c/build/include -g -O2 -fdebug-prefix-map=/home/jamessan/src/msgpack-c=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -g -O3 -o CMakeFiles/msgpackc-static.dir/src/unpack.c.o -c /home/jamessan/src/msgpack-c/src/unpack.c | ||
13 | In file included from /home/jamessan/src/msgpack-c/src/unpack.c:283:0: | ||
14 | /home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h: In function 'template_execute': | ||
15 | /home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h:238:17: error: this statement may fall through [-Werror=implicit-fallthrough=] | ||
16 | ++p; | ||
17 | ^~~ | ||
18 | /home/jamessan/src/msgpack-c/include/msgpack/unpack_template.h:240:13: note: here | ||
19 | default: | ||
20 | ^~~~~~~ | ||
21 | cc1: all warnings being treated as errors | ||
22 | |||
23 | Adding the comment makes it explicit that the fallthrough is | ||
24 | intentional, so gcc doesn't complain. | ||
25 | --- | ||
26 | include/msgpack/unpack_template.h | 1 + | ||
27 | 1 file changed, 1 insertion(+) | ||
28 | |||
29 | diff --git a/include/msgpack/unpack_template.h b/include/msgpack/unpack_template.h | ||
30 | index 8450442..e557bb6 100644 | ||
31 | --- a/include/msgpack/unpack_template.h | ||
32 | +++ b/include/msgpack/unpack_template.h | ||
33 | @@ -236,6 +236,7 @@ msgpack_unpack_func(int, _execute)(msgpack_unpack_struct(_context)* ctx, const c | ||
34 | |||
35 | _fixed_trail_again: | ||
36 | ++p; | ||
37 | + // fallthrough | ||
38 | |||
39 | default: | ||
40 | if((size_t)(pe - p) < trail) { goto _out; } | ||