From patchwork Wed May 30 07:16:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 922586 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40whj5652gz9s1b for ; Wed, 30 May 2018 17:16:25 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PmPCKIvE"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 40whj52ljpzDr6Q for ; Wed, 30 May 2018 17:16:25 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PmPCKIvE"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c00::242; helo=mail-pf0-x242.google.com; envelope-from=joel.stan@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PmPCKIvE"; dkim-atps=neutral Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40whj06cfjzDr61 for ; Wed, 30 May 2018 17:16:19 +1000 (AEST) Received: by mail-pf0-x242.google.com with SMTP id p19-v6so4324248pff.13 for ; Wed, 30 May 2018 00:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id; bh=m/7sHKoxaxftYyFOV9AoQFwuWjDqGUcGczYrsEamoO4=; b=PmPCKIvE5Cl0AnSYAhYB3YVeTdcTxSOgW7WV7TAeBCEnLsZ3s0XUWOij4a9f9HmJqW VGAvM/wW+use3RQOZete2yJyvG26fyv2v8CAaTEZO5hmoy3jFZxYwASLKDeZ64DQ+h43 vfY7DKlnOAM/0Fzl6Q901koyEtReVSaB32si0sxG5GW8t9XR8pmAhoi+d35bZVgHB9Mo JOwJmpZR5s0FlZBTd5FoXXE4BkPd92AiC/ZEfS1G8uAto1ODR547yU/ZAFeMGDuegNzn LFofblAIKzQ/Gmja41UwB+Zwf6xERrjaWiP4TbyLYwSE2oA6kgi6CpqOgzfh7Ld9pNXq RxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=m/7sHKoxaxftYyFOV9AoQFwuWjDqGUcGczYrsEamoO4=; b=umyqkVqyMslBDHKNdek4eynricAbxDqtRUZUi97R7fPSNAi9/uSQ3Cog+eHl7bdIlL vIcpS8yhOzNZADFjcN0Kb8JFcC6YKR7MniVN+QbzJZjM7aQooU93UCia+xUpkQRciUs3 TLBhdzZmhNCEv9YvsUUynsn6FBgqgtRbmjLqCTBpLfvihF9iuFPSH4gHWn+ESP6u7Qwh vNLwLXZzcsg1jgVgBl5wSDcI5oFNnDqowMs+vOgMJ3n+ZP6QSgmr5kBOAAFfjI0wmI48 gUGadKev4SrmiPPyswUJKu255CCogrgAYwVaIthQ1w8Bj2lu+pz1QDsuWZH3yyOUVwlc nHPg== X-Gm-Message-State: ALKqPwfNnYYgip9/5PdUbKPoB+46lzrORNHCf5CsGDHX6d+6RQitrKgY czaR7/cO4xTorIglkxa3W8bstoBd X-Google-Smtp-Source: ADUXVKIkEqjabzG1jI0IBbKwoW7NgTodnMSLoR60m0JXTCoRNKf1HXEDC3mokb2JjyNC/7I1nalaOQ== X-Received: by 2002:a65:4502:: with SMTP id n2-v6mr1264867pgq.95.1527664577338; Wed, 30 May 2018 00:16:17 -0700 (PDT) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id j186-v6sm30176743pgc.10.2018.05.30.00.16.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 00:16:16 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Wed, 30 May 2018 16:46:11 +0930 From: Joel Stanley To: skiboot@lists.ozlabs.org Date: Wed, 30 May 2018 16:46:10 +0930 Message-Id: <20180530071610.24915-1-joel@jms.id.au> X-Mailer: git-send-email 2.17.0 Subject: [Skiboot] [PATCH] Makefile: Check -Wno-stringop-truncation is supported X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" The cross compiler on my system throws a fit as it does not understand this option: cc1: error: unrecognized command line option '-Wno-stringop-truncation' [-Werror] Fixes: 918b7233d3bb ("Add -Wno-stringop-truncation for GCC8") Signed-off-by: Joel Stanley --- Makefile.main | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.main b/Makefile.main index a155e1e66601..8d50f0e05d5a 100644 --- a/Makefile.main +++ b/Makefile.main @@ -31,7 +31,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Wwrite-strings -Wcast-align \ -Winit-self \ -Wframe-larger-than=1024 \ - -Wno-stringop-truncation \ + $(call try-cflag,$(CC),--Wno-stringop-truncation) \ -Werror # Host tools and options