From patchwork Tue Aug 15 00:17:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qu Wenruo X-Patchwork-Id: 9900409 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F33F602BA for ; Tue, 15 Aug 2017 00:18:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17424203B9 for ; Tue, 15 Aug 2017 00:18:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B03D23B32; Tue, 15 Aug 2017 00:18:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59EB6203B9 for ; Tue, 15 Aug 2017 00:18:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752779AbdHOARx (ORCPT ); Mon, 14 Aug 2017 20:17:53 -0400 Received: from mout.gmx.net ([212.227.17.21]:57197 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752740AbdHOARx (ORCPT ); Mon, 14 Aug 2017 20:17:53 -0400 Received: from localhost.localdomain ([45.32.39.184]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MbbWD-1e0Rs946sv-00Iz01; Tue, 15 Aug 2017 02:17:49 +0200 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Cc: dsterba@suse.cz, Qu Wenruo Subject: [RESEND PATCH] btrfs-progs: Specify C standard to gnu90 explicitly Date: Tue, 15 Aug 2017 09:17:12 +0900 Message-Id: <20170815001712.6710-1-quwenruo.btrfs@gmx.com> X-Mailer: git-send-email 2.13.3 X-Provags-ID: V03:K0:xLXSeRp8b47DNvqPjTLlo3M+E36Gh5WpgB7vS55zcNKvtC9p/EY xFdm/Kjze2uzQfMGUgkXkD0AmB2if0ooHqYkcjXJBoTppqWUIkEHB1w73EtZlMffAB65Q9d JuR9vj6tEOQMTGGH9oVAi/VtKMiDe6mdoxdCHKMjsekV7Uzfy8UddOyVlmt7g1mFODHcb8N 91V5SC4IsGWY30vF/ZNIg== X-UI-Out-Filterresults: notjunk:1; V01:K0:gYDaDHLqU6o=:IeBwBC5pD2sPrDK/27nBae +Q8UEKzNAIsaWjqDnvh7qeKqech7CT9N0iAeA2EpABt5hxBDYjKDGfrvBSxXSIokpoo6UoxuU uB8c5nBcF0/6A/2bepE6cvAPdH7lyFjn+y0O1usflvfQVcHhNJwMmh1J66K1IqDrlR4AjRj8O X+yEAEh9RFnTPj+zM8+Fcz5LBFhO8KRyk2efcK6xI6X617uVoTG5N+WVW0jSAbdi4ZKooUrbc ccDVraAE4MKPTeYuYrN40WFp5EY/cYX/K82YOzF7ddlqWVDivxZX7nHBchWB2OXB0turZfT1Z LZ5xho8hpJCFMDD5dlduZw/cOkZeFGqRe6s7QHiB/8F/H4OfJ6q9rTzPrOMe1k6VQA2P2Oqic JbZaddiLcC/4M/j4Uny5b8mT4RI9kwWVC0WOZeqEwAVH7upNYD3D3tH0vslfNOX65qsLp+3iS w68yCug1UxWkqFcS3IjvzS8GwUdnIPr9TXCGkGX5zAPBp0oW71KBf6BlwWfb5jr4HEesvfkLD xgNx6FmDAp2/N/CJW2ja7STdw18oSMikD7Xaidk7ywIYF8Y2thnv1pdapdJEgW9DI0fihkM72 rzDvO5JZnRbaszLAn8YvWrposJC8kgrFvZJY46EoeoinRaPEEIoQVPSL3GhewDI4LI921kR98 NCbUXJRjsS1zWLX3T2lgzEzod1X+2+ZNKQX7KpPYuDj5otLmY1VN61uttNvpaCZ54jJLJePgL lg5PLUoXCx1SrtxZpPMrmssqMBs3Y6rcYW6I2VxCTmOHeNurSOxMoNI5QE8LL6gBKdXZQDa6A pQ4jUrY4/oxlVuDN9FNvo8fi6BmNw== Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Different C compilers have different default language standard. This sometimes causes problem on different system. For distribution like CentOS/RHEL7, its gcc is still 4.8 and will report error for c90 style declaration, while most developers are using newer gcc which will just ignore it. This makes us hard to detect such language standard problem. This patch will specify standard to gnu90 explicitly to avoid such problem. Gnu90 is a good mix of c90 while provide a lot of useful gnu extension, and is supported by all modern gcc and clang. Reported-by: Marco Lorenzo Crociani Signed-off-by: Qu Wenruo --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 81598df1..cb1b3c5f 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ TOPDIR := $(shell pwd) # Common build flags CFLAGS = $(SUBST_CFLAGS) \ + -std=gnu90 \ -include config.h \ -DBTRFS_FLAT_INCLUDES \ -D_XOPEN_SOURCE=700 \