diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-04-01 00:19:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-04-03 23:53:20 +0100 |
commit | a36e4bb2f83f006a413571c89bffb0ece3e04b12 (patch) | |
tree | 41ee25507db0f3879ebff4069a4012b1b02efe82 /meta/recipes-devtools | |
parent | 5b85332a0f3e3049b249d0fff27396da3f370b15 (diff) | |
download | poky-a36e4bb2f83f006a413571c89bffb0ece3e04b12.tar.gz |
nasm: Fix pure function warnings
(From OE-Core rev: e3c76fd3db928fc487e86325df299f3f02ef369c)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/nasm/nasm/0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch | 27 | ||||
-rw-r--r-- | meta/recipes-devtools/nasm/nasm_2.13.03.bb | 4 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-devtools/nasm/nasm/0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch b/meta/recipes-devtools/nasm/nasm/0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch new file mode 100644 index 0000000000..12ae3a94df --- /dev/null +++ b/meta/recipes-devtools/nasm/nasm/0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 77c3a77210d8ca8b94e999c711156e984a8dc737 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 31 Mar 2018 11:05:33 -0700 | ||
4 | Subject: [PATCH] asmlib: Drop pure function attribute from seg_init | ||
5 | |||
6 | seg_init returns void, so it is impure function | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Submitted | ||
11 | |||
12 | include/nasmlib.h | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/include/nasmlib.h b/include/nasmlib.h | ||
16 | index 79e866b..b80b7e2 100644 | ||
17 | --- a/include/nasmlib.h | ||
18 | +++ b/include/nasmlib.h | ||
19 | @@ -191,7 +191,7 @@ int64_t readstrnum(char *str, int length, bool *warn); | ||
20 | * seg_init: Initialise the segment-number allocator. | ||
21 | * seg_alloc: allocate a hitherto unused segment number. | ||
22 | */ | ||
23 | -void pure_func seg_init(void); | ||
24 | +void seg_init(void); | ||
25 | int32_t pure_func seg_alloc(void); | ||
26 | |||
27 | /* | ||
diff --git a/meta/recipes-devtools/nasm/nasm_2.13.03.bb b/meta/recipes-devtools/nasm/nasm_2.13.03.bb index 3a47fc9c88..236d7e5e36 100644 --- a/meta/recipes-devtools/nasm/nasm_2.13.03.bb +++ b/meta/recipes-devtools/nasm/nasm_2.13.03.bb | |||
@@ -3,7 +3,9 @@ SECTION = "devel" | |||
3 | LICENSE = "BSD-2-Clause" | 3 | LICENSE = "BSD-2-Clause" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=90904486f8fbf1861cf42752e1a39efe" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=90904486f8fbf1861cf42752e1a39efe" |
5 | 5 | ||
6 | SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2 " | 6 | SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2 \ |
7 | file://0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch \ | ||
8 | " | ||
7 | 9 | ||
8 | SRC_URI[md5sum] = "0c581d482f39d5111879ca9601938f74" | 10 | SRC_URI[md5sum] = "0c581d482f39d5111879ca9601938f74" |
9 | SRC_URI[sha256sum] = "63ec86477ad3f0f6292325fd89e1d93aea2e2fd490070863f17d48f7cd387011" | 11 | SRC_URI[sha256sum] = "63ec86477ad3f0f6292325fd89e1d93aea2e2fd490070863f17d48f7cd387011" |