Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1459264imm; Wed, 19 Sep 2018 19:47:48 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYBMvl6MYOdnr/wi3qpDVYbKMkYKAkOZz+Fn8jvp2yO2sfuGy1wb3k68nyuH05HGggYYPNd X-Received: by 2002:a63:ec14:: with SMTP id j20-v6mr34908157pgh.28.1537411668770; Wed, 19 Sep 2018 19:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537411668; cv=none; d=google.com; s=arc-20160816; b=z/bxfeRLlSsI4WdfoCIt0mZfIRM6ww/PJGj50K1PmYVduUCAtAcuEQyXAt2/jd45KQ kCmOkyMaW0s8/y5eSwVnOC/S2LrLav8NkqHMBDYedw8Z3TIVybmXNXhLhz3yxoMH7TA0 40d4YPg7kJCE2Sdfac84qDoFX62bBoJrc865rhmUOwx6MgX2zkLTWEHUEFmQmRDKmRDo rdnfxH1nW6R+2rvxXoS493FiQfe5QzRZtnh/lFJMXLEwdRifkpyb84CIkRjroi7waeHU s9s/+KR9h378MMwtbvdKdd9SoBLePsh2YLjD95QEuJWxPFVgDALGl6e1gEP1kkh2Rudk blvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=COcCVLMghzhiPUv1IbTGtS018o+xJVEPCzRyJIKmMbA=; b=uwOSeLRchAeZ4p7vQNLeSL0LZ1mdm7gBbYshxThlyXENj0YHhvzr9AUEFaV39jKOaz toH/29U+7bcpvWT6Ui0OHM2m4OSUCypEcfk9JGZQ8EGd2Hjt0uSCE022/91ats84YqDf 69ZNxmxirr1RzrvEERXtanecTHxIYF5KcCj7bVimyguOHC6hiDnvahQZa0ZB/xaWZ8Qx TFtEJ6cyJ0kTIg2zxS0YDCEHN27/7G2kFHsowPmxGiAgP74NPWlL3VsOnrWdmLKEiv8q Ud7dbVzbtmKkmJvjo1J2zy6dt1LfsFWcndhCw+8XS4S3+mPvbxmT9w7e8tIY/10f+rNo TPcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z123-v6si25286778pfc.289.2018.09.19.19.47.33; Wed, 19 Sep 2018 19:47:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733191AbeITI2Q (ORCPT + 99 others); Thu, 20 Sep 2018 04:28:16 -0400 Received: from exmail.andestech.com ([59.124.169.137]:19846 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731366AbeITI2P (ORCPT ); Thu, 20 Sep 2018 04:28:15 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w8K2gYM0093961; Thu, 20 Sep 2018 10:42:34 +0800 (GMT-8) (envelope-from vincentc@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Thu, 20 Sep 2018 10:46:53 +0800 From: Vincent Chen To: , , , , , Subject: [PATCH 5/5] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning Date: Thu, 20 Sep 2018 10:46:22 +0800 Message-ID: <1537411582-23723-6-git-send-email-vincentc@andestech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537411582-23723-1-git-send-email-vincentc@andestech.com> References: <1537411582-23723-1-git-send-email-vincentc@andestech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w8K2gYM0093961 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org _FP_ROUND_ZERO is defined as 0 and used as a statemente in macro _FP_ROUND. This generates "error: statement with no effect [-Werror=unused-value]" from gcc. Defining _FP_ROUND_ZERO as (void)0 to fix it. This modification is quoted from glibc 'commit (8ed1e7d5894000c155acbd06f)' Signed-off-by: Vincent Chen --- include/math-emu/soft-fp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/math-emu/soft-fp.h b/include/math-emu/soft-fp.h index 3f284bc..5650c16 100644 --- a/include/math-emu/soft-fp.h +++ b/include/math-emu/soft-fp.h @@ -138,7 +138,7 @@ _FP_FRAC_ADDI_##wc(X, _FP_WORK_ROUND); \ } while (0) -#define _FP_ROUND_ZERO(wc, X) 0 +#define _FP_ROUND_ZERO(wc, X) (void)0 #define _FP_ROUND_PINF(wc, X) \ do { \ -- 1.7.1