gcc -Wall lint.
authorIan Lance Taylor <ian@airs.com>
Wed, 18 Jan 1995 17:24:48 +0000 (17:24 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 18 Jan 1995 17:24:48 +0000 (17:24 +0000)
* expr.c (operand): Parenthesize && within ||.
* listing.c (listing_newline): Likewise.
(list_symbol_table): Use %lu to print sizeof.
* symbols.c: Comment out unused function indent.
(print_symbol_value_1): Cast pointer to unsigned long for printf.
* config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
will be used.
* config/tc-h8300.c (md_begin): Remove unused variable reg.
(get_operand): Declare type of parameter direction.  Remove unused
variable size.
(get_specific): Fix comment to avoid nested comments.
(check_operand): Cast X_add_number to unsigned long for printf.
(build_bytes): Remove unused local variables output_ptr, part, and
high.
(build_bytes): Cast X_add_number to unsigned long for printf.
(clever_message): Remove unused variable scan.
(md_assemble): Remove unused variable i.
(tc_coff_sizemachdep): Remove unused function.
* tc-h8300.h (tc_reloc_mangle): Declare.

gas/ChangeLog
gas/config/obj-coff.c

index fe4762e17bb3d569f43a52f98ca57dd40953e694..ee818d2bccea20725ee69a66b951edcaa91d25a1 100644 (file)
@@ -1,3 +1,25 @@
+Wed Jan 18 12:16:07 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * expr.c (operand): Parenthesize && within ||.
+       * listing.c (listing_newline): Likewise.
+       (list_symbol_table): Use %lu to print sizeof.
+       * symbols.c: Comment out unused function indent.
+       (print_symbol_value_1): Cast pointer to unsigned long for printf.
+       * config/obj-coff.c (do_relocs_for): Only declare symbol_ptr if it
+       will be used.
+       * config/tc-h8300.c (md_begin): Remove unused variable reg.
+       (get_operand): Declare type of parameter direction.  Remove unused
+       variable size.
+       (get_specific): Fix comment to avoid nested comments.
+       (check_operand): Cast X_add_number to unsigned long for printf.
+       (build_bytes): Remove unused local variables output_ptr, part, and
+       high.
+       (build_bytes): Cast X_add_number to unsigned long for printf.
+       (clever_message): Remove unused variable scan.
+       (md_assemble): Remove unused variable i.
+       (tc_coff_sizemachdep): Remove unused function.
+       * tc-h8300.h (tc_reloc_mangle): Declare.
+
 Tue Jan 17 10:58:06 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
 
        * config/tc-mips.c (mips_4650): New static variable.
index 1108df6cbb0f1065868af42ac4abb96d8f0da21c..4cef5e9b8affe3149e6e6180b389cb8d405c23d5 100644 (file)
@@ -1577,7 +1577,6 @@ do_relocs_for (abfd, h, file_cursor)
                 internal fix list.  */
              while (fix_ptr)
                {
-                 symbolS *symbol_ptr;
                  struct internal_reloc intr;
 
                  /* Only output some of the relocations */
@@ -1588,7 +1587,7 @@ do_relocs_for (abfd, h, file_cursor)
 
 #else
                      symbolS *dot;
-                     symbol_ptr = fix_ptr->fx_addsy;
+                     symbolS *symbol_ptr = fix_ptr->fx_addsy;
 
                      intr.r_type = TC_COFF_FIX2RTYPE (fix_ptr);
                      intr.r_vaddr =