[Bug c/48825] New: libiberty "psignal" lacks const modifier, failing to compile when HAVE_PSIGNAL is undefined

wkor97gy0eef1fr at i dot mintemail.com gcc-bugzilla@gcc.gnu.org
Fri Apr 29 16:28:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48825

           Summary: libiberty "psignal" lacks const modifier, failing to
                    compile when HAVE_PSIGNAL is undefined
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: wkor97gy0eef1fr@i.mintemail.com


../../../libiberty/strsignal.c:554:1: error: conflicting types for ‘psignal’
/usr/include/signal.h:150:13: note: previous declaration of ‘psignal’ was here


strsignal.c:

#ifndef HAVE_PSIGNAL
void 
psignal (int signo, char *message)


/usr/include/signal.h (GLIBC)

extern void psignal (int __sig, __const char *__s);


adding the __const modifier to the prototype of psignal in strsignal.c fixes
compilation.



More information about the Gcc-bugs mailing list