mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] fix compiler warning in sound/pci/cs46xx/cs46xx_lib.o
Date: Fri, 28 Mar 2003 00:01:09 -0800	[thread overview]
Message-ID: <35900000.1048838469@[10.10.2.4]> (raw)

Fix the following compiler warning:
sound/pci/cs46xx/cs46xx_lib.c: In function `amp_voyetra':
sound/pci/cs46xx/cs46xx_lib.c:3384: warning: unused variable `old'
by wrapping the old variable in the same ifdef as its usage.

diff -urpN -X /home/fletch/.diff.exclude
virgin/sound/pci/cs46xx/cs46xx_lib.c
cs46xx_lib/sound/pci/cs46xx/cs46xx_lib.c
--- virgin/sound/pci/cs46xx/cs46xx_lib.c	Wed Mar 26 22:54:40 2003
+++ cs46xx_lib/sound/pci/cs46xx/cs46xx_lib.c	Thu Mar 27 23:45:23 2003
@@ -3381,7 +3381,9 @@ static void amp_voyetra(cs46xx_t *chip, 
 	/* Manage the EAPD bit on the Crystal 4297 
 	   and the Analog AD1885 */
 	   
+#ifdef CONFIG_SND_CS46XX_NEW_DSP
 	int old = chip->amplifier;
+#endif
 	int oval, val;
 	
 	chip->amplifier += change;


                 reply	other threads:[~2003-03-28  7:49 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='35900000.1048838469@[10.10.2.4]' \
    --to=mbligh@aracnet.com \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®