http://llvm.org/bugs/show_bug.cgi?id=8371

           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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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

http://en.wikibooks.org/wiki/C++_Programming/ctype.h_header

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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to