aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/recipes-devtools/nasm/files/0001-asmlib-Drop-pure-function-attribute-from-seg_init.patch
blob: 12ae3a94df3da16a485f02fba33ad3e2a9c68d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 77c3a77210d8ca8b94e999c711156e984a8dc737 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 31 Mar 2018 11:05:33 -0700
Subject: [PATCH] asmlib: Drop pure function attribute from seg_init

seg_init returns void, so it is impure function

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Submitted

 include/nasmlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nasmlib.h b/include/nasmlib.h
index 79e866b..b80b7e2 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -191,7 +191,7 @@ int64_t readstrnum(char *str, int length, bool *warn);
  * seg_init: Initialise the segment-number allocator.
  * seg_alloc: allocate a hitherto unused segment number.
  */
-void pure_func seg_init(void);
+void seg_init(void);
 int32_t pure_func seg_alloc(void);
 
 /*