aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-10 00:40:46 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-10 00:40:46 +0300
commit9f45a77f46829e666b35530939b9237cf978d4dc (patch)
treef5f618ea7ff085da1c4a310dfaae98374049f92b
parent5eb1838b4d3752fd863d19442943983a2a5ee87c (diff)
downloadnasm-9f45a77f46829e666b35530939b9237cf978d4dc.tar.gz
nasm-9f45a77f46829e666b35530939b9237cf978d4dc.tar.xz
nasm-9f45a77f46829e666b35530939b9237cf978d4dc.zip
nasmlib: Drop pure_func attrib from seg_alloc
It not only reads static variable but writes it back as well. https://bugzilla.nasm.us/show_bug.cgi?id=3392461 Reported-by: Michael Šimáček <msimacek@redhat.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--include/nasmlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nasmlib.h b/include/nasmlib.h
index fee1b5ea..69b81b7e 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -190,7 +190,7 @@ int64_t readstrnum(char *str, int length, bool *warn);
/*
* seg_alloc: allocate a hitherto unused segment number.
*/
-int32_t pure_func seg_alloc(void);
+int32_t seg_alloc(void);
/*
* many output formats will be able to make use of this: a standard