* [U-Boot-Users] [PATCH] small correction
@ 2004-01-09 16:12 Stephan Linz
2004-02-08 19:51 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Stephan Linz @ 2004-01-09 16:12 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH] small correction
2004-01-09 16:12 [U-Boot-Users] [PATCH] small correction Stephan Linz
@ 2004-02-08 19:51 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-02-08 19:51 UTC (permalink / raw)
To: u-boot
In message <04010917125003.30267@pcj86> you wrote:
>
> - avoid harmless warning: unused variable `piop'
> in board/altera/common/sevenseg.c
Added, thanks.
Best regards,
Wolfgang Denk
--
See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Sex is like air. It's only a big deal if you can't get any.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-08 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-09 16:12 [U-Boot-Users] [PATCH] small correction Stephan Linz
2004-02-08 19:51 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox