From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05530C433FE for ; Thu, 20 Oct 2022 11:53:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229494AbiJTLxP (ORCPT ); Thu, 20 Oct 2022 07:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiJTLxO (ORCPT ); Thu, 20 Oct 2022 07:53:14 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F087F7B593 for ; Thu, 20 Oct 2022 04:53:13 -0700 (PDT) Received: from localhost.localdomain (unknown [182.253.183.172]) by gnuweeb.org (Postfix) with ESMTPSA id 0BCE481101; Thu, 20 Oct 2022 11:53:10 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666266793; bh=jnZvodqpnnsAyxXZpMTOloEEdBVMnRIQh2CflLouVGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fEMZMIRtLfPC68DGZtt3dU1LJXOp6B2jKa77jFYBa0CBXAXSvRuqmy7BWu04ytmdq MiwHG2Wk9yJoMa1+uB6sgCZKOVVSLwBTIsahAq7gpw6wLD2FcAnc0n7od6XScMEjK7 ENOrF7Zw//x3WUEcFZm9kHI2bG1k4/3YYMfHkR/NZrmT3Xfsey3FLPzmps0rnfQ7wi +FoXBPXJ5gH/ZslJ/FwnvI+Sw1SFBA9jAK/jigTU6Ac0nWjeXJM4qhhKqCJXMbE2mZ UfdGBVeAmDOdkagv5H1E6pIVaDd+/1EzKKJJPv9lKyc4JGadktPYLlhLZ3ZQGvkRqR 3YOK5jonODAgg== From: Ammar Faizi To: Jens Axboe Cc: Dylan Yudaken , Ammar Faizi , Pavel Begunkov , GNU/Weeb Mailing List , io-uring Mailing List , Facebook Kernel Team , Dylan Yudaken Subject: [PATCH liburing v1 3/3] github: Append `-Wshorten-64-to-32` flag for clang build Date: Thu, 20 Oct 2022 18:52:06 +0700 Message-Id: <20221020114814.63133-4-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020114814.63133-1-ammar.faizi@intel.com> References: <20221020114814.63133-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Ammar Faizi liburing has a couple of int shortening issues found by clang. A previous commit has cleaned them up. Integrate -Wshorten-64-to-32 flag to the GitHub bot to spot the same issue in the future. This flag is clang-specific, it currently doesn't exist in GCC. Co-authored-by: Dylan Yudaken Signed-off-by: Dylan Yudaken Signed-off-by: Ammar Faizi --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2608644..b0e669d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,7 @@ jobs: cxx_pkg: clang cc: clang cxx: clang++ + extra_flags: -Wshorten-64-to-32 # x86 (32-bit) gcc - arch: i686 @@ -86,6 +87,9 @@ jobs: env: FLAGS: -g -O3 -Wall -Wextra -Werror + # Flags for building sources in src/ dir only. + LIBURING_CFLAGS: ${{matrix.extra_flags}} + steps: - name: Checkout source uses: actions/checkout@v2 -- Ammar Faizi