From: Uros Bizjak <ubizjak@gmail.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: Ian Taylor <iant@golang.org>
Subject: Re: [PATCH, libiberty]: Avoid "enum conversion when passing argument 1 of ‘getrusage’ is invalid in C++" warning
Date: Wed, 08 Jul 2015 07:06:00 -0000 [thread overview]
Message-ID: <CAFULd4a_uc7FHRpRBkf23UPNCgexvqb0tsGt9Qrev-D7CGd0Ww@mail.gmail.com> (raw)
In-Reply-To: <CAFULd4bJLL-Ux_Xa5ws=6yc0-fyi8DM9X=3gH88DLjxiMFXK3g@mail.gmail.com>
On Wed, Jul 1, 2015 at 12:07 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> This patch avoids "enum conversion when passing argument 1 of
> ‘getrusage’ is invalid in C++" warning when compiling getruntime.c.
> The condition is copied from sys/resource.h.
>
> 2015-07-01 Uros Bizjak <ubizjak@gmail.com>
>
> * getruntime.c (get_run_time) [__USE_GNU]: Use RUSAGE_SELF as
> argument 1 of getrusage call.
>
> Bootstrapped on x86_64-linux-gnu.
>
> OK for mainline?
I went ahead and committed the patch to mainline as obvious.
Uros.
next prev parent reply other threads:[~2015-07-08 7:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 10:07 Uros Bizjak
2015-07-08 7:06 ` Uros Bizjak [this message]
2015-07-09 13:00 ` Ian Lance Taylor
2015-07-09 14:15 ` Uros Bizjak
2015-07-09 14:32 ` Ian Lance Taylor
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=CAFULd4a_uc7FHRpRBkf23UPNCgexvqb0tsGt9Qrev-D7CGd0Ww@mail.gmail.com \
--to=ubizjak@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=iant@golang.org \
/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).