public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: Commit: RL78: Fix compile time warnings
Date: Thu, 23 Apr 2015 13:41:00 -0000	[thread overview]
Message-ID: <87bnifgdxg.fsf@redhat.com> (raw)

Hi Guys,

  I am applying the patch below as an obvious fix for come compile time
  warning messages building the rl78 toolchain.

Cheers
  Nick

gcc/ChangeLog
2015-04-23  Nick Clifton  <nickc@redhat.com>

	* config/rl78/rl78.c (rl78_preferred_reload_class): Add
	ATTRIBUTE_UNUSED to x parameter.
	* config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.

Index: config/rl78/rl78-opts.h
===================================================================
--- config/rl78/rl78-opts.h	(revision 222368)
+++ config/rl78/rl78-opts.h	(working copy)
@@ -23,7 +23,6 @@
 enum rl78_mul_types
 {
   MUL_NONE,
-  MUL_RL78,
   MUL_G13,
   MUL_G14,
   MUL_UNINIT
Index: config/rl78/rl78.c
===================================================================
--- config/rl78/rl78.c	(revision 222368)
+++ config/rl78/rl78.c	(working copy)
@@ -4646,7 +4646,7 @@
 #define TARGET_PREFERRED_RELOAD_CLASS rl78_preferred_reload_class
 
 static reg_class_t
-rl78_preferred_reload_class (rtx x, reg_class_t rclass)
+rl78_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
 {
   if (rclass == NO_REGS)
     rclass = V_REGS;

                 reply	other threads:[~2015-04-23 13:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87bnifgdxg.fsf@redhat.com \
    --to=nickc@redhat.com \
    --cc=gcc-patches@gcc.gnu.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).