diff options
author | Ben Laurie <benl@FreeBSD.org> | 2011-06-18 13:56:33 +0000 |
---|---|---|
committer | Ben Laurie <benl@FreeBSD.org> | 2011-06-18 13:56:33 +0000 |
commit | 5f301949ef1a0e2444e6a0b6700c8bcf400498fc (patch) | |
tree | 6edd0c06e1319e9f8e2572723af2f2d72fabda97 /contrib/binutils/bfd | |
parent | f404863979cd0d00193099825904396d5f30cb34 (diff) | |
download | src-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.tar.gz src-5f301949ef1a0e2444e6a0b6700c8bcf400498fc.zip |
Fix clang warnings.
Approved by: philip (mentor)
Notes
Notes:
svn path=/head/; revision=223262
Diffstat (limited to 'contrib/binutils/bfd')
-rw-r--r-- | contrib/binutils/bfd/coffcode.h | 2 | ||||
-rw-r--r-- | contrib/binutils/bfd/opncls.c | 2 | ||||
-rw-r--r-- | contrib/binutils/bfd/peicode.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/contrib/binutils/bfd/coffcode.h b/contrib/binutils/bfd/coffcode.h index a2aac5f63b4c..e654148a9b2d 100644 --- a/contrib/binutils/bfd/coffcode.h +++ b/contrib/binutils/bfd/coffcode.h @@ -3240,7 +3240,7 @@ coff_compute_section_file_positions (bfd * abfd) incremented in coff_set_section_contents. This is right for SVR3.2. */ if (strcmp (current->name, _LIB) == 0) - bfd_set_section_vma (abfd, current, 0); + (void) bfd_set_section_vma (abfd, current, 0); #endif previous = current; diff --git a/contrib/binutils/bfd/opncls.c b/contrib/binutils/bfd/opncls.c index 9e0cc26c4e2b..ad22db590a27 100644 --- a/contrib/binutils/bfd/opncls.c +++ b/contrib/binutils/bfd/opncls.c @@ -231,7 +231,7 @@ bfd_fopen (const char *filename, const char *target, const char *mode, int fd) then it may have been opened with special flags that make it unsafe to close and reopen the file. */ if (fd == -1) - bfd_set_cacheable (nbfd, TRUE); + (void) bfd_set_cacheable (nbfd, TRUE); return nbfd; } diff --git a/contrib/binutils/bfd/peicode.h b/contrib/binutils/bfd/peicode.h index 0f4858f4bfbc..4ae10dba1245 100644 --- a/contrib/binutils/bfd/peicode.h +++ b/contrib/binutils/bfd/peicode.h @@ -607,7 +607,7 @@ pe_ILF_make_a_section (pe_ILF_vars * vars, bfd_set_section_flags (vars->abfd, sec, flags | extra_flags); - bfd_set_section_alignment (vars->abfd, sec, 2); + (void) bfd_set_section_alignment (vars->abfd, sec, 2); /* Check that we will not run out of space. */ BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); |