Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10554C433EF for ; Sun, 10 Oct 2021 19:23:47 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EEFC360EBC for ; Sun, 10 Oct 2021 19:23:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EEFC360EBC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 23393833F0; Sun, 10 Oct 2021 21:23:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id E454183475; Sun, 10 Oct 2021 21:23:40 +0200 (CEST) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B608E833AE for ; Sun, 10 Oct 2021 21:23:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qk1-f169.google.com with SMTP id c7so14688163qka.2 for ; Sun, 10 Oct 2021 12:23:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Qa4dCdLN+ueLmKiWZP8PWVEnKgLG+xe6CVtBA256C5M=; b=GHJ6pD2H1fx6RSeHkl9wgUsn5SuCQ1qT0g2uWSHJdQPZVHVNcLKmY+6fqIEtXlJToz 1MKMfvIX/SMUfyUYSmsyp66NMS6eNlLd+u99CO5YvYupAZMijdGUPW2MnaesS1yfFbNP 0FHxOMZPAlyLNINGEvhdjKFxk8KAHiOjJItzZ2C3vAl26SD+ZEBuqYQxGB9bmVUbXmAH rn3u4yv2o5QdleM3YP74buFUtSVb01uF/KI7A391YNVrorIdjXQBdK87tlbsW+vh1RkG gp+tJ16iMU1nLdPVSdsUq5j0oUEuJjmHoGCvV7NbfBZ5Crelij9/6PKB5+OrQnSRMEyD 1uTg== X-Gm-Message-State: AOAM533d1IbXl1nDN+Snbttn5xypTGP5py3eIagjv61pCezdUrGlpy3A lSXHNL1st4vNZC5rY6WYqbaGEVeXvw== X-Google-Smtp-Source: ABdhPJwL446y8sJvX8h6O/xYBppTRKLRKtKotBVwQdc+18eO+AI1iV6chmQo+CzXMgKIre1Js5/65Q== X-Received: by 2002:a05:620a:228c:: with SMTP id o12mr11832127qkh.367.1633893815898; Sun, 10 Oct 2021 12:23:35 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-7461-ba79-88cf-55cd.res6.spectrum.com. [2603:6081:7b01:cbda:7461:ba79:88cf:55cd]) by smtp.gmail.com with ESMTPSA id p190sm3102388qkf.15.2021.10.10.12.23.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Oct 2021 12:23:35 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH] tools: Stop re-defining -std= when building tools Date: Sun, 10 Oct 2021 15:23:32 -0400 Message-Id: <20211010192332.3929646-1-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean While we intentionally set -std=gnu11 for building host tools, and have for quite some time, we never dropped -std=gnu99 from tools/Makefile. This resulted in passing -std=gnu11 ... -std=gnu99 when building, and gnu99 would win. This in turn would result now in warnings such as: tools/mkeficapsule.c:25:15: warning: redefinition of typedef 'u32' is a C11 feature [-Wtypedef-redefinition] typedef __u32 u32; ^ Signed-off-by: Tom Rini --- tools/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 999fd4653166..b45219e2c30c 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -295,8 +295,7 @@ HOST_EXTRACFLAGS += -include $(srctree)/include/compiler.h \ -I$(srctree)/tools \ -DUSE_HOSTCC \ -D__KERNEL_STRICT_NAMES \ - -D_GNU_SOURCE \ - -std=gnu99 + -D_GNU_SOURCE __build: $(LOGO-y) -- 2.25.1