public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Eric Christopher <echristo@redhat.com>
Cc: binutils@sources.redhat.com
Subject: Re: [RFA] Fix compilation warnings in irix-core.c
Date: Tue, 29 Mar 2005 06:19:00 -0000	[thread overview]
Message-ID: <20050328233959.GS2545@adacore.com> (raw)
In-Reply-To: <1112050439.5223.11.camel@localhost.localdomain>

> > 2005-03-28  Joel Brobecker  <brobecker@adacore.com>
> > 
> >         * irix-core.c (do_sections): Add parenthesis in expression
> >         to avoid a compiler warning.
> >         (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
> >         to unused parameters to avoid a compiler warning.
> 
> 
>  
>        if (!make_bfd_asection (abfd, secname,
> -			      SEC_ALLOC | SEC_LOAD+SEC_HAS_CONTENTS,
> +			      SEC_ALLOC | (SEC_LOAD+SEC_HAS_CONTENTS),
> 
> Spaces around the + please.

Daniel and Thiemo suggested changing the + into a |. I will make that
change and test that, if you agree.

>  irix_core_core_file_matches_executable_p (core_bfd, exec_bfd)
> -     bfd *core_bfd, *exec_bfd;
> +     bfd *core_bfd ATTRIBUTE_UNUSED, *exec_bfd ATTRIBUTE_UNUSED;
> 
> Can you move this to:
> 
> bfd *core_bfd ATTRIBUTE_UNUSED;
> bfd *exec_bfd ATTRIBUTE_UNUSED;
> 
> please?

Sure.

> OK with those changes. Though if you want to migrate the whole file to
> ISO I'd appreciate it. For style just look at, say, elfxx-mips.c :)

Sure. I'll try to do that today.

Thanks all three of you for the light-speed reviews.
-- 
Joel

  reply	other threads:[~2005-03-28 23:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29  4:32 Joel Brobecker
2005-03-29  4:59 ` Daniel Jacobowitz
2005-03-29  5:11 ` Thiemo Seufer
2005-03-29  6:03 ` Eric Christopher
2005-03-29  6:19   ` Joel Brobecker [this message]
2005-03-29  6:29     ` Eric Christopher
2005-03-29  8:31       ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050328233959.GS2545@adacore.com \
    --to=brobecker@adacore.com \
    --cc=binutils@sources.redhat.com \
    --cc=echristo@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).