From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id D2B713857801 for ; Thu, 17 Jun 2021 00:26:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D2B713857801 Received: by mail-wm1-x32a.google.com with SMTP id j18so2061542wms.3 for ; Wed, 16 Jun 2021 17:26:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=y0LS03cUAqsOGeeSk9e0IFonz4wr3ciAJT5D7kqsrLI=; b=KzHtiFKkMXfjsBBfurmYEi3hlDZT2zKc8tweMiZN7Xmp3Of1uPe+9RtR7tWOHYzUv2 n4UGVnt6tjdvyNekjP+DCHbBQ9ysJ2GHD0rPS60YK/+GZokH5oZpXs8up89VlSgmR8cO osTD9zsSKe5h0OS6igMuWWyur3cF1JrufVorF/V7CLwjLWEO+XwXl6Zqy8JK1K4TI/V2 oD0EoFLD8oza3agq1Hi6lWd8NGQow0tGTxdIyIiFHVMRjokHNL9LWidWYcT5VEwIYq/9 DCjF3mCCUVJjOaXinjMQvIW35N0t3vEUPaAAS2Due+GpBH254CP3Z3FK7KpBe9EpdirH aGPw== X-Gm-Message-State: AOAM533kiRHMS15Gm953eASDFrGHWBriHSB4DbpGyfG4H6mLlpS6zH5I pbC47Op9CSaMVdDALPrXzIrqHaUUU7VORQ== X-Google-Smtp-Source: ABdhPJxN5oN7l0OEJ5BxEtW4OpF5JG0O5b0odJ8uX4/8H5gFEByXjjTxW0bhMXi+UgGbGM+imSiJ4w== X-Received: by 2002:a1c:40c3:: with SMTP id n186mr1763544wma.52.1623889581713; Wed, 16 Jun 2021 17:26:21 -0700 (PDT) Received: from ?IPv6:2001:8a0:7d79:6000:17ff:3e2f:5eb7:aec4? ([2001:8a0:7d79:6000:17ff:3e2f:5eb7:aec4]) by smtp.googlemail.com with ESMTPSA id o3sm4359856wrc.0.2021.06.16.17.26.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 17:26:21 -0700 (PDT) Subject: Re: Build failure due to format-truncation To: Martin Sebor , gcc@gcc.gnu.org References: <487076c8-4863-55c6-35c3-a95c2567a7eb@gmail.com> <77560d1e-1505-1c84-9aaf-2bfbb4f2031f@gmail.com> <312406de-e000-24cd-2b18-7123bfa02f7e@gmail.com> From: =?UTF-8?Q?Jos=c3=a9_Rui_Faustino_de_Sousa?= Message-ID: <06e6287d-0c19-0514-e57f-c7985a88668e@gmail.com> Date: Thu, 17 Jun 2021 00:26:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <312406de-e000-24cd-2b18-7123bfa02f7e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2021 00:26:24 -0000 On 16/06/21 20:37, Martin Sebor wrote: > I don't really think the warning is doing > anything wrong > I completely agree. I am not complaining about the warning, I am complaining that there is code in gcc which raises this warning and breaks the build. I was assuming that this was being triggered by some option that I was using but, on further investigation, the -Wformat-truncation flag is being set by -Wall which AFAICT is set by the build process itself... So this is starting to look like something that really should be fixed... What bugs me is why it seems that I was the only one who noticed... Thank you very much. Best regards, José Rui