All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephan Linz <linz@mazet.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] small correction
Date: Fri, 9 Jan 2004 17:12:50 +0100	[thread overview]
Message-ID: <04010917125003.30267@pcj86> (raw)

Hi all,

   - avoid harmless warning: unused variable `piop'
     in board/altera/common/sevenseg.c



Best Regards,
Stephan Linz

-------------- next part --------------
diff -purN -x CVS u-boot-trigraph_files_fix/board/altera/common/sevenseg.c u-boot-unused_warn_fix/board/altera/common/sevenseg.c
--- u-boot-trigraph_files_fix/board/altera/common/sevenseg.c	Sat Jan  3 20:43:48 2004
+++ u-boot-unused_warn_fix/board/altera/common/sevenseg.c	Fri Jan  9 17:01:41 2004
@@ -44,7 +44,7 @@ static int sevenseg_init_done = 0;
 
 static inline void __sevenseg_set_masked (unsigned int mask, int value)
 {
-	nios_pio_t *piop = (nios_pio_t*)SEVENSEG_BASE;
+	nios_pio_t *piop __attribute__((unused)) = (nios_pio_t*)SEVENSEG_BASE;
 
 #ifdef	SEVENSEG_WRONLY	/* emulate read access */
 
@@ -97,7 +97,7 @@ static inline void __sevenseg_toggle_mas
 
 static inline void __sevenseg_set (unsigned int value)
 {
-	nios_pio_t *piop = (nios_pio_t*)SEVENSEG_BASE;
+	nios_pio_t *piop __attribute__((unused)) = (nios_pio_t*)SEVENSEG_BASE;
 
 #ifdef	SEVENSEG_WRONLY	/* emulate read access */
 
@@ -126,7 +126,7 @@ static inline void __sevenseg_set (unsig
 
 static inline void __sevenseg_init (void)
 {
-	nios_pio_t *piop = (nios_pio_t*)SEVENSEG_BASE;
+	nios_pio_t *piop __attribute__((unused)) = (nios_pio_t*)SEVENSEG_BASE;
 
 	__sevenseg_set(0);
 
-------------- next part --------------
* Patch by Stephan Linz, 09 Jan 2004
   - avoid harmless warning: unused variable `piop'
     in board/altera/common/sevenseg.c

             reply	other threads:[~2004-01-09 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09 16:12 Stephan Linz [this message]
2004-02-08 19:51 ` [U-Boot-Users] [PATCH] small correction Wolfgang Denk

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=04010917125003.30267@pcj86 \
    --to=linz@mazet.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.