From Eli. Warning fixes.

This commit is contained in:
Andrew Cagney 2000-02-29 07:45:13 +00:00
parent 30f6df08a5
commit 9d271fd8b3
4 changed files with 23 additions and 8 deletions

View File

@ -1,3 +1,16 @@
Tue Feb 29 18:40:08 2000 Andrew Cagney <cagney@b1.cygnus.com>
From 2000-02-23 Eli Zaretskii <eliz@is.elta.co.il>:
* utils.c [__GO32__]: Include pc.h, for prototypes of ScreenCols
and ScreenRows.
* ser-go32.c: Include string.h, for prototype of strncasecmp.
(dpmi_regs, dpmi_sregs): Remove unused variables.
(dos_flush_input): Return a value, to prevent compiler warning.
* expprint.c (dump_prefix_expression): Use %ld in format and cast
sizeof(union exp_element) to long, to prevent GCC from complaining
about format/argument mismatch.
(dump_postfix_expression): Likewise.
Tue Feb 29 18:09:46 2000 Andrew Cagney <cagney@b1.cygnus.com>
* arm-tdep.c: Include <ctype.h>.

View File

@ -710,9 +710,9 @@ dump_prefix_expression (exp, stream, note)
print_expression (exp, stream);
else
fprintf_filtered (stream, "Type printing not yet supported....");
fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %d bytes each.\n",
fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %ld bytes each.\n",
exp->language_defn->la_name, exp->nelts,
sizeof (union exp_element));
(long) sizeof (union exp_element));
fprintf_filtered (stream, "\t%5s %20s %16s %s\n", "Index", "Opcode",
"Hex Value", "String Value");
for (elt = 0; elt < exp->nelts; elt++)
@ -986,9 +986,9 @@ dump_postfix_expression (exp, stream, note)
print_expression (exp, stream);
else
fputs_filtered ("Type printing not yet supported....", stream);
fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %d bytes each.\n",
fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %ld bytes each.\n",
exp->language_defn->la_name, exp->nelts,
sizeof (union exp_element));
(long) sizeof (union exp_element));
fputs_filtered ("\n", stream);
for (elt = 0; elt < exp->nelts;)

View File

@ -127,15 +127,12 @@
#define MSR_DDSR 0x02
#define MSR_DCTS 0x01
#include <string.h>
#include <dos.h>
#include <go32.h>
#include <dpmi.h>
typedef unsigned long u_long;
/* DPMI Communication */
static union REGS dpmi_regs;
static struct SREGS dpmi_sregs;
/* 16550 rx fifo trigger point */
#define FIFO_TRIGGER FIFO_TRIGGER_4
@ -693,6 +690,7 @@ dos_flush_input (scb)
if (port->fifo)
outb (port, com_fifo, FIFO_ENABLE | FIFO_RCV_RST | FIFO_TRIGGER);
enable ();
return 0;
}
static void

View File

@ -31,6 +31,10 @@
#include <term.h>
#endif
#ifdef __GO32__
#include <pc.h>
#endif
/* SunOS's curses.h has a '#define reg register' in it. Thank you Sun. */
#ifdef reg
#undef reg