From patchwork Mon Oct 9 14:57:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guo Ren X-Patchwork-Id: 823282 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3y9jzQ00c4z9t7D for ; Tue, 10 Oct 2017 01:58:07 +1100 (AEDT) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 258CE10781; Mon, 9 Oct 2017 16:58:04 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtp2200-217.mail.aliyun.com (smtp2200-217.mail.aliyun.com [121.197.200.217]) by helium.openadk.org (Postfix) with ESMTPS id CF84110780; Mon, 9 Oct 2017 16:58:01 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.07036585|-1; FP=0|0|0|0|0|-1|-1|-1; HT=e02c03301; MF=ren_guo@c-sky.com; NM=1; PH=DS; RN=3; RT=3; SR=0; TI=SMTPD_---.953OTPS_1507561068; Received: from localhost.localdomain(mailfrom:ren_guo@c-sky.com ip:125.120.219.171) by smtp.aliyun-inc.com(10.147.42.197); Mon, 09 Oct 2017 22:57:54 +0800 From: Guo Ren To: devel@uclibc-ng.org Date: Mon, 9 Oct 2017 22:57:45 +0800 Message-Id: <1507561065-17658-1-git-send-email-ren_guo@c-sky.com> X-Mailer: git-send-email 2.7.4 Cc: Guo Ren Subject: [uclibc-ng-devel] [PATCH] libpthread/nptl: bugfix compile warning. X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" warning: unused variable 'self' [-Wunused-variable] Signed-off-by: Guo Ren --- libpthread/nptl/sysdeps/unix/sysv/linux/fork.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c index 8b4b036..9b96152 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c @@ -144,9 +144,7 @@ fork (void) if (pid == 0) { - struct pthread *self = THREAD_SELF; - - assert (THREAD_GETMEM (self, tid) != ppid); + assert (THREAD_GETMEM (THREAD_SELF, tid) != ppid); if (__fork_generation_pointer != NULL) *__fork_generation_pointer += 4;