public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/25914]  New: strsignal.c:558: warning: comparison between signed and unsigned
@ 2006-01-22 21:26 danglin at gcc dot gnu dot org
  2006-01-23 14:51 ` [Bug other/25914] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-01-22 21:26 UTC (permalink / raw)
  To: gcc-bugs

/mnt/gnu/gcc-3.3/objdir/./gcc/xgcc -B/mnt/gnu/gcc-3.3/objdir/./gcc/
-B/opt/gnu64
/gcc/gcc-4.2.0/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.2.0/hppa64-hp-hpu
x11.11/lib/ -isystem /opt/gnu64/gcc/gcc-4.2.0/hppa64-hp-hpux11.11/include
-isyst
em /opt/gnu64/gcc/gcc-4.2.0/hppa64-hp-hpux11.11/sys-include -c -DHAVE_CONFIG_H
-
O2 -g -O2  -I. -I../../../gcc/libiberty/../include  -W -Wall -pedantic
-Wwrite-s
trings -Wstrict-prototypes ../../../gcc/libiberty/strsignal.c -o strsignal.o
../../../gcc/libiberty/strsignal.c: In function 'psignal':
../../../gcc/libiberty/strsignal.c:558: warning: comparison between signed and
u
nsigned

#ifndef HAVE_PSIGNAL

void
psignal (unsigned signo, char *message)
{
  if (signal_names == NULL)
    {
      init_signal_tables ();
    }
  if ((signo <= 0) || (signo >= sys_nsig))

I'm not sure whether the if should be fixed or the type of signo
should be changed to int.  The first argument in the linux implementation
has the type of int.


-- 
           Summary: strsignal.c:558: warning: comparison between signed and
                    unsigned
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa*-*-hpux*
  GCC host triplet: hppa*-*-hpux*
GCC target triplet: hppa*-*-hpux*


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-22 15:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-22 21:26 [Bug other/25914] New: strsignal.c:558: warning: comparison between signed and unsigned danglin at gcc dot gnu dot org
2006-01-23 14:51 ` [Bug other/25914] " pinskia at gcc dot gnu dot org
2006-01-26 21:56 ` sje at cup dot hp dot com
2006-01-26 23:09 ` pinskia at gcc dot gnu dot org
2006-01-27  0:12 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-22 15:22 ` danglin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).