Commit e797ff70 by Kaveh R. Ghazi Committed by Kaveh Ghazi

Warning fixes:

	* cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
	comparing against a signed quantity.
	(arm_special): Likewise.
	(demangle_fund_type): Likewise.
	(do_hpacc_template_const_value): Mark parameter `work' with
	ATTRIBUTE_UNUSED.
	(main): Constify variable `valid_symbols'.

From-SVN: r28859
parent 355298fb
1999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
comparing against a signed quantity.
(arm_special): Likewise.
(demangle_fund_type): Likewise.
(do_hpacc_template_const_value): Mark parameter `work' with
ATTRIBUTE_UNUSED.
(main): Constify variable `valid_symbols'.
Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be> Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
* strtoul.c (strtoul): Add parentheses around && within ||. * strtoul.c (strtoul): Add parentheses around && within ||.
......
...@@ -2448,7 +2448,7 @@ gnu_special (work, mangled, declp) ...@@ -2448,7 +2448,7 @@ gnu_special (work, mangled, declp)
break; break;
default: default:
n = consume_count (mangled); n = consume_count (mangled);
if (n < 0 || n > strlen (*mangled)) if (n < 0 || n > (long) strlen (*mangled))
{ {
success = 0; success = 0;
break; break;
...@@ -2615,7 +2615,7 @@ arm_special (mangled, declp) ...@@ -2615,7 +2615,7 @@ arm_special (mangled, declp)
{ {
n = consume_count (mangled); n = consume_count (mangled);
if (n == -1 if (n == -1
|| n > strlen (*mangled)) || n > (long) strlen (*mangled))
return 0; return 0;
string_prependn (declp, *mangled, n); string_prependn (declp, *mangled, n);
(*mangled) += n; (*mangled) += n;
...@@ -3381,7 +3381,7 @@ demangle_fund_type (work, mangled, result) ...@@ -3381,7 +3381,7 @@ demangle_fund_type (work, mangled, result)
int i; int i;
(*mangled)++; (*mangled)++;
for (i = 0; for (i = 0;
i < sizeof (buf) - 1 && **mangled && **mangled != '_'; i < (long) sizeof (buf) - 1 && **mangled && **mangled != '_';
(*mangled)++, i++) (*mangled)++, i++)
buf[i] = **mangled; buf[i] = **mangled;
if (**mangled != '_') if (**mangled != '_')
...@@ -3450,7 +3450,7 @@ demangle_fund_type (work, mangled, result) ...@@ -3450,7 +3450,7 @@ demangle_fund_type (work, mangled, result)
static int static int
do_hpacc_template_const_value (work, mangled, result) do_hpacc_template_const_value (work, mangled, result)
struct work_stuff *work; struct work_stuff *work ATTRIBUTE_UNUSED;
const char **mangled; const char **mangled;
string *result; string *result;
{ {
...@@ -4451,7 +4451,7 @@ main (argc, argv) ...@@ -4451,7 +4451,7 @@ main (argc, argv)
{ {
char *result; char *result;
int c; int c;
char *valid_symbols; const char *valid_symbols;
program_name = argv[0]; program_name = argv[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment