Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1663762imm; Wed, 10 Oct 2018 19:58:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV61t/eJo6dAY4kdxo2VOwg1dbGCqoEqwXQwsSArCSxpclgvSCdUrqypFUIgG+nUqz9eLMuXO X-Received: by 2002:a63:214d:: with SMTP id s13-v6mr32103014pgm.148.1539226692900; Wed, 10 Oct 2018 19:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539226692; cv=none; d=google.com; s=arc-20160816; b=AUkXINMz6EIVLkJ6Yv/mE0tEUEasqvPiB51bcFvOJrIAKmgijwCL5pbBveg9X9Asgs yrL69udWWz7u2eG8g2AF7guDFi3/PmrMqpW+KuXMj1VLauhPPPYmoguLomGFXVeBANch 4nqjH0iL+faeobMtCk+dVP5KE+MUuXvh7eWWi6lLB9Ip/9lRNHIBJLLyke170usmdWXw /9KPDOUzKwN1zkGcVwh7u7x/5Dvq6EAF0EUpAhlurT04JmumLPoyPohAuhagC6Mgro7x lx7/XsRbLabPerMvWy/2VtIqOyTYbg4hXGMZUwoOf4KqNQUo8ePQ+a4U6tj3kdUof0Vo t7hw== 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:cc:to:from; bh=O0odaskLo6GA77WNR3o3QFVD/iNZzQmUSnoZ9YkJRSY=; b=toj8bX/5+OfjOIHbjeiS6nDRS6trRY3hSRTDiBNKReGTS8spotZSRz2dUUGvWNsIe8 i7b7JD45E/09BaoKiQAt4disMtViNuAJl0uWus4DWRqM94MKuoOnLlPxR7/RkFaWL09W v3oy4LuIpwl67xTS/j4bsj1QKLhmxYdREF9vZjEwGDcvtttKMP81LAanr+5uAVHROEJS yyTgep/COLralKqG+aPJklJI1s7d7rhvVIlEjVYz+EJ77IylS+TewLUSCReUrabZiap4 7dPMiB4fpJ32dVA2wzOZIbGPjZW7xnIl5JGPMYWsglvIQ89UQGMtsEznpOMIWT0fEjLq 4lTQ== 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 a11-v6si26110903pgd.400.2018.10.10.19.57.58; Wed, 10 Oct 2018 19:58:12 -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 S1727352AbeJKKUg (ORCPT + 99 others); Thu, 11 Oct 2018 06:20:36 -0400 Received: from 59-120-53-16.HINET-IP.hinet.net ([59.120.53.16]:23294 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726088AbeJKKUf (ORCPT ); Thu, 11 Oct 2018 06:20:35 -0400 Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id w9B2NuY0096770 for ; Thu, 11 Oct 2018 10:23:56 +0800 (GMT-8) (envelope-from vincentc@andestech.com) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w9B2NlCo096751; Thu, 11 Oct 2018 10:23:47 +0800 (GMT-8) (envelope-from vincentc@andestech.com) Received: from atcsqa06.andestech.com (10.0.15.65) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Thu, 11 Oct 2018 10:21:16 +0800 From: Vincent Chen To: , , , CC: Vincent Chen Subject: [PATCH v2 5/5] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning Date: Thu, 11 Oct 2018 10:20:50 +0800 Message-ID: <1539224450-19928-6-git-send-email-vincentc@andestech.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539224450-19928-1-git-send-email-vincentc@andestech.com> References: <1539224450-19928-1-git-send-email-vincentc@andestech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.15.65] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w9B2NlCo096751 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