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: unassig...@gcc.gnu.org
        ReportedBy: wkor97gy0eef...@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.

Reply via email to