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>
This commit is contained in:
Cyrill Gorcunov 2018-02-10 00:40:46 +03:00
parent 5eb1838b4d
commit 9f45a77f46

View File

@ -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