From 193a17fe38a72246a3f319c93e7c464568212aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 22 May 2018 11:30:51 +0200 Subject: [PATCH] nasm: fix build w/ gcc81 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes error: 'pure' attribute on function returning 'void' Signed-off-by: Jürgen Buchmüller --- srcpkgs/nasm/patches/gcc81-pure_func.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/nasm/patches/gcc81-pure_func.patch diff --git a/srcpkgs/nasm/patches/gcc81-pure_func.patch b/srcpkgs/nasm/patches/gcc81-pure_func.patch new file mode 100644 index 00000000000..b5c24d59f24 --- /dev/null +++ b/srcpkgs/nasm/patches/gcc81-pure_func.patch @@ -0,0 +1,11 @@ +--- include/nasmlib.h 2017-11-29 20:44:08.000000000 +0100 ++++ include/nasmlib.h 2018-05-22 11:26:47.909787252 +0200 +@@ -191,7 +191,7 @@ + * 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); + + /*