diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-06-27 04:07:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-06-27 04:07:50 +0000 |
commit | 1995df0090ab0d2d6567c32ecd7665d320e55af5 (patch) | |
tree | b83b202dd37eae31c719df5fb29f1f96970c0f9a /bfd/coffcode.h | |
parent | 7b2094d39f8b2651b4a056bd5d5872ae9406f329 (diff) | |
download | binutils-redhat-1995df0090ab0d2d6567c32ecd7665d320e55af5.tar.gz |
fix set but unused variable warnings
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 1cf2b4e35f..734dde9f0e 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -3090,11 +3090,11 @@ static bfd_boolean coff_compute_section_file_positions (bfd * abfd) { asection *current; - asection *previous = NULL; file_ptr sofar = bfd_coff_filhsz (abfd); bfd_boolean align_adjust; int target_index; #ifdef ALIGN_SECTIONS_IN_FILE + asection *previous = NULL; file_ptr old_sofar; #endif @@ -3408,7 +3408,9 @@ coff_compute_section_file_positions (bfd * abfd) bfd_set_section_vma (abfd, current, 0); #endif +#ifdef ALIGN_SECTIONS_IN_FILE previous = current; +#endif } /* It is now safe to write to the output file. If we needed an @@ -5179,6 +5181,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols) /* Calculate any reloc addend by looking at the symbol. */ CALC_ADDEND (abfd, ptr, dst, cache_ptr); + (void) ptr; cache_ptr->address -= asect->vma; /* !! cache_ptr->section = NULL;*/ |