]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Warning fixes:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Wed, 25 Aug 1999 13:29:34 +0000 (13:29 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 25 Aug 1999 13:29:34 +0000 (13:29 +0000)
* 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

libiberty/ChangeLog
libiberty/cplus-dem.c

index ccea46f40ca538ea3715aa7c4ab541d1c531d322..7d05041bd7703e0bc74c2957f74c6d57cc8a62e4 100644 (file)
@@ -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 ||.
index 6d51710685c6001eadbf0cd224bf471faeb97fba..7fea97a81b38fbea1c11fde8111ea9e581679315 100644 (file)
@@ -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];