[LLVMbugs] [Bug 3535] New: const char * assigned to char * in Unix/Signals.inc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 10 06:00:18 PST 2009


           Summary: const char * assigned to char * in Unix/Signals.inc
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: salimma at fedoraproject.org
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=2519)
 --> (http://llvm.org/bugs/attachment.cgi?id=2519)
Patch for Unix/Signals.inc

strrchr returns a const char *, but it is assigned to a char * variable twice
in the file. This breaks compiling, at least on gcc-4.4.0 prereleases.

Switching to const char * (instead of coercing to char *) seems to work; the
char array is never modified.

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