[LLVMbugs] [Bug 8371] New: __attribute__ ((__const)) not recognized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 13 02:42:35 PDT 2010


           Summary: __attribute__ ((__const)) not recognized
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ggreif at gmail.com
                CC: llvmbugs at cs.uiuc.edu

We seem to have a legacy header (and no process in place to change it) which
looks pretty much like this:


Clang warns on the "__attribute__ ((__const))" part:
warning: unknown attribute '__const' ignored [-Wunknown-attributes]
     __attribute__ ((__const));

I propose to add '__const' as an attribute, becoming synonymous to 'const'. I
am about to make a patch and shall attach it here.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list