summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-25 13:29:34 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-25 13:29:34 +0000
commitac126d8255f548619688460bf50f2aa323d065d3 (patch)
tree613f81a9231026cc1a7f1375bb22f6cdf950c776 /libiberty
parentd27cf996b9604dca6902529a481eab0edec2f58f (diff)
downloadgcc-ac126d8255f548619688460bf50f2aa323d065d3.tar.gz
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'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28859 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog10
-rw-r--r--libiberty/cplus-dem.c10
2 files changed, 15 insertions, 5 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index ccea46f40ca..7d05041bd77 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,13 @@
+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>
* strtoul.c (strtoul): Add parentheses around && within ||.
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c
index 6d51710685c..7fea97a81b3 100644
--- a/libiberty/cplus-dem.c
+++ b/libiberty/cplus-dem.c
@@ -2448,7 +2448,7 @@ gnu_special (work, mangled, declp)
break;
default:
n = consume_count (mangled);
- if (n < 0 || n > strlen (*mangled))
+ if (n < 0 || n > (long) strlen (*mangled))
{
success = 0;
break;
@@ -2615,7 +2615,7 @@ arm_special (mangled, declp)
{
n = consume_count (mangled);
if (n == -1
- || n > strlen (*mangled))
+ || n > (long) strlen (*mangled))
return 0;
string_prependn (declp, *mangled, n);
(*mangled) += n;
@@ -3381,7 +3381,7 @@ demangle_fund_type (work, mangled, result)
int i;
(*mangled)++;
for (i = 0;
- i < sizeof (buf) - 1 && **mangled && **mangled != '_';
+ i < (long) sizeof (buf) - 1 && **mangled && **mangled != '_';
(*mangled)++, i++)
buf[i] = **mangled;
if (**mangled != '_')
@@ -3450,7 +3450,7 @@ demangle_fund_type (work, mangled, result)
static int
do_hpacc_template_const_value (work, mangled, result)
- struct work_stuff *work;
+ struct work_stuff *work ATTRIBUTE_UNUSED;
const char **mangled;
string *result;
{
@@ -4451,7 +4451,7 @@ main (argc, argv)
{
char *result;
int c;
- char *valid_symbols;
+ const char *valid_symbols;
program_name = argv[0];