Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6493048imm; Mon, 27 Aug 2018 17:30:24 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbyfl2zmfXh/ypFbe92A57sL+Y1oUk3xU2H1/PZrAx6gJ5AIM0DHvZAknyk8His3eszOyFn X-Received: by 2002:a17:902:ab94:: with SMTP id f20-v6mr15330472plr.231.1535416224193; Mon, 27 Aug 2018 17:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535416224; cv=none; d=google.com; s=arc-20160816; b=W+BHwpF2DcERRRVn+yeR6Tf5n6g6qTIH2AKNMjBDkIWBfqnpng3lgwIHyfyZMtfpcq Mjyq3s7Fq71JPXba/ZF0zS8SV05Hc1cHS58LwstGz0Jz02xsaKVfGYN4DQkxp30g4Yhe QsFefWBXR/qi8y3EdNeFVtpIKIgNz5FUz6FNYPQ9hefnJQhlHhl/wzvLaYeinU5cuHOf jBTIKLEb4Hux4bX1pcc9dSBbAOxdSxMI/ATlujkjBA6KKFfwLTK5wWElYRQqt1iNXnGh LOj3BH6y5Dh0DS+WeiHJcnZ6dcVxx4mhRKMhVI0Nd+i5LnKO9geOznBJKjxboCV35N2V JjQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=d6rtpcTQ6taD6xzADqttpN46Uz2RYbwp4kt6eAIJ/IY=; b=M+DVLrj439lT7a7pILDJ3TiiGnXZCBluaGMKPIaS/zuI7o7lbtxhifDQoGJ/TdL84O FyT8tJn28XedrSB14yprAXtg2VkyA09x12J+uJkJoeidlmiOZzZyR7RVBdN4+cUPGWhD kuEGTdEOhltE3sX8MdcnwTQkl7FKRUSMc+/Aw28utOsQQQIT8VXBbRPl6bV1gvgb9tqX YKzckY7dkhyO1DQYycrVMXDAnRmR9PGjIRGMqVL3+N/w5N/H/v/i2x7LPIADd8Vvzm5K QuIrJYepIjxdxJ1NrU8/8nplPOAbhRoSbIopQ1RlBgNl5JJvoK/Z+P1hYqyWHlkwH38R fSnQ== 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 ba10-v6si593967plb.228.2018.08.27.17.30.09; Mon, 27 Aug 2018 17:30:24 -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 S1726180AbeH1ER4 (ORCPT + 99 others); Tue, 28 Aug 2018 00:17:56 -0400 Received: from exmail.andestech.com ([59.124.169.137]:36248 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725198AbeH1ERz (ORCPT ); Tue, 28 Aug 2018 00:17:55 -0400 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w7S0QNJR089058; Tue, 28 Aug 2018 08:26:23 +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; Tue, 28 Aug 2018 08:28:49 +0800 From: Vincent Chen To: , CC: , Vincent Chen Subject: [PATCH 2/2] math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning Date: Tue, 28 Aug 2018 08:28:43 +0800 Message-ID: <1535416123-23265-1-git-send-email-vincentc@andestech.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w7S0QNJR089058 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 will generate "error: statement with no effect [-Werror=unused-value]" from gcc when compiling. Defining _FP_ROUND_ZERO as (void)0 to fix it. This modification references the content of 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