[Nasm-bugs] [Bug 3392461] New: Invalid pure_func qualifiers

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Thu Feb 8 05:51:07 PST 2018


            Bug ID: 3392461
           Summary: Invalid pure_func qualifiers
           Product: NASM
           Version: 2.13.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: msimacek at redhat.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Built from git using configure

Created attachment 411624
  --> https://bugzilla.nasm.us/attachment.cgi?id=411624&action=edit
Proposed fix

When building nasm in Fedora with gcc-8.0.1, I encountered this error:

./include/nasmlib.h:194:1: error: 'pure' attribute on function returning 'void'
 void pure_func seg_init(void);

Removing the pure_func qualifier fixes the problem.
There is also a pure_func qualifier on seg_alloc function, which is not pure.

Patch attached.

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list