Subject: archive.c/arm32
To: None <current-users@NetBSD.ORG>
From: Patrick Welche <prlw1@cam.ac.uk>
List: current-users
Date: 03/23/1998 18:26:02
Is anyone else seeing the warning in
src/gnu/usr.bin/gcc/libobjc/archive.c
In function `__objc_code_char':
  96: warning: comparison is always 1 due to limited range of data type

?!

static __inline__ int
__objc_code_char (unsigned char* buf, char val)
{ 
  if (val >= 0)
    return __objc_code_unsigned_char (buf, val);
  else
    {
      buf[0] = _B_NINT|_B_SIGN|0x01;
      buf[1] = -val;
      return 2;
    }
} 

On arm32 being compiled with the comp set from ftp.ph.kcl.ac.uk, and a
sup of 19th March. (Doesn't go away with the -O)

Cheers,

 Patrick