delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/03/02/09:32:13

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200203021413.PAA04383@father.ludd.luth.se>
Subject: More complaints from gcc 3.03
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sat, 2 Mar 2002 15:13:29 +0100 (MET)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

More warnings from gcc 3.03. I didn't see these before because these
parts don't error on warnings. (There might be more of them.)

make -C common
gcc ... -c dbgcom.c
dbgcom.c: In function `_set_break_DPMI':
dbgcom.c:254: warning: comparison between signed and unsigned

if(rv != -1) {
  breakhandle[i] = bpinfo.handle;
  /* printf("SetBreak typ=%d siz=%d at 0x%x returns han=%d\n",brtype,(int)bpinfo.size,(unsigned)bpinfo.address,breakhandle[i]); */
  if(breakhandle[i] == (bpinfo.address >> 16) )   /* Win 2K bug */ /* Line 254. */
    breakhandle[i] = nset;
  nset++;


gcc ... -c v2load.c
v2load.c: In function `make_proxy_var':
v2load.c:131: warning: comparison between signed and unsigned

static int
make_proxy_var(const char *program, const char *cmdline,
               unsigned long *tbuf, size_t *tb_space, size_t *proxy_argc)
{
...
  cmd_selector = 0;     /* if it stays 0, it wasn't allocated */
  *tbuf = __dpmi_allocate_dos_memory ((*tb_space + 15) >> 4, &cmd_selector);
  if (*tbuf == -1) /* Line 131. */
    return 0;

  *tbuf <<= 4;
  *proxy_argc = argc;


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019