* Compiler warnings / linux-2.6
@ 2005-06-06 15:57 Ralf Rösch
2005-06-07 11:37 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Ralf Rösch @ 2005-06-06 15:57 UTC (permalink / raw)
To: linux-mips
Since a few days I get a lot of compiler warnings:
include2/asm/dsp.h: In function `__init_dsp':
include2/asm/dsp.h:34: warning: statement with no effect
What could I do to prevent these?
Thanks
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Compiler warnings / linux-2.6
2005-06-06 15:57 Compiler warnings / linux-2.6 Ralf Rösch
@ 2005-06-07 11:37 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-06-07 11:37 UTC (permalink / raw)
To: Ralf Rösch; +Cc: linux-mips
On Mon, Jun 06, 2005 at 05:57:06PM +0200, Ralf Rösch wrote:
> Since a few days I get a lot of compiler warnings:
>
> include2/asm/dsp.h: In function `__init_dsp':
> include2/asm/dsp.h:34: warning: statement with no effect
>
> What could I do to prevent these?
Reporting them. A fairly obvious and harmless problem. I'm surprised my
compiler (gcc 3.4) doesn't throw these warnings.
Ralf
Index: include/asm-mips/mipsregs.h
===================================================================
RCS file: /home/cvs/linux/include/asm-mips/mipsregs.h,v
retrieving revision 1.73
diff -u -r1.73 mipsregs.h
--- include/asm-mips/mipsregs.h 31 May 2005 11:49:19 -0000 1.73
+++ include/asm-mips/mipsregs.h 7 Jun 2005 11:39:10 -0000
@@ -1010,8 +1010,6 @@
#define wrdsp(val, mask) \
do { \
- unsigned int __res; \
- \
__asm__ __volatile__( \
" .set push \n" \
" .set noat \n" \
@@ -1021,7 +1019,6 @@
" .set pop \n" \
: \
: "r" (val), "i" (mask)); \
- __res; \
} while (0)
#if 0 /* Need DSP ASE capable assembler ... */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-07 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-06 15:57 Compiler warnings / linux-2.6 Ralf Rösch
2005-06-07 11:37 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox