From patchwork Tue Sep 20 12:18:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 115519 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EE12AB71E1 for ; Tue, 20 Sep 2011 22:18:44 +1000 (EST) Received: from localhost ([::1]:45888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zHd-00027T-Ef for incoming@patchwork.ozlabs.org; Tue, 20 Sep 2011 08:18:41 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zHT-000266-0F for qemu-devel@nongnu.org; Tue, 20 Sep 2011 08:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5zHN-0006BE-FN for qemu-devel@nongnu.org; Tue, 20 Sep 2011 08:18:30 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:65255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5zHN-0006BA-7U for qemu-devel@nongnu.org; Tue, 20 Sep 2011 08:18:25 -0400 Received: by wyh22 with SMTP id 22so488849wyh.4 for ; Tue, 20 Sep 2011 05:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=yopJuV34b/5NkzqvceAxa7hCAQCFYGT2mX0PSwvT/To=; b=fyzNwo4wBfrl3WQGRcJz+z0ImnB6CnZU6RV+/Izfcthq4zIvIfSYL2ayGAs93PeR3k Ie3sSKNsLIT+vpjJV6zkWcS1cEVa7kn+6frmCRbsNRbtzZ3LGKXFGaBrPDeUpBWspXOO jt1LE1VTIv8VH5H/5eXNln15LWC1NN1UxsuV0= Received: by 10.216.72.65 with SMTP id s43mr826918wed.40.1316521104366; Tue, 20 Sep 2011 05:18:24 -0700 (PDT) Received: from localhost.localdomain (93-34-188-71.ip51.fastwebnet.it. [93.34.188.71]) by mx.google.com with ESMTPS id ex16sm2054191wbb.4.2011.09.20.05.18.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Sep 2011 05:18:23 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 20 Sep 2011 14:18:18 +0200 Message-Id: <1316521098-12825-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.173 Cc: kwolf@redhat.com Subject: [Qemu-devel] [PATCH] fix error: variable 'pid' set but not used X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org /home/pbonzini/work/upstream/qemu/posix-aio-compat.c: In function 'aio_thread': /home/pbonzini/work/upstream/qemu/posix-aio-compat.c:314:11: error: variable 'pid' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Paolo Bonzini Reviewed-by: Stefan Hajnoczi --- Kevin, can you add this to your block branch pull for today? posix-aio-compat.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 393fa4b..d3c1174 100644 --- a/posix-aio-compat.c +++ b/posix-aio-compat.c @@ -311,10 +311,6 @@ static void posix_aio_notify_event(void); static void *aio_thread(void *unused) { - pid_t pid; - - pid = getpid(); - mutex_lock(&lock); pending_threads--; mutex_unlock(&lock);