From: Ralf Baechle <ralf@linux-mips.org>
To: "Ralf Rösch" <linux@cantastic.de>
Cc: linux-mips@linux-mips.org
Subject: Re: Compiler warnings / linux-2.6
Date: Tue, 7 Jun 2005 12:37:31 +0100 [thread overview]
Message-ID: <20050607113731.GB4654@linux-mips.org> (raw)
In-Reply-To: <42A47252.2010906@cantastic.de>
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 ... */
prev parent reply other threads:[~2005-06-07 11:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-06 15:57 Compiler warnings / linux-2.6 Ralf Rösch
2005-06-07 11:37 ` Ralf Baechle [this message]
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=20050607113731.GB4654@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=linux@cantastic.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.