From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from localhost.localdomain (unknown [182.253.183.172]) by gnuweeb.org (Postfix) with ESMTPSA id BECB5811F2; Thu, 20 Oct 2022 13:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1666271721; bh=Kw3TWBpSLDyh78RGCaDMQme+RaSGD02sE1fAlWYUS6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fj6+WEH8Oc84sRLXS0DNFx7JfRE8xW3zVDtwXxw0V3Mz+jZNCoMYcyC4SWL7do4Gd vAlegCenjlFkjl3VKWrx+/0Ewubzl5CokgWgnLTncktlRRQ95iJx+XzejqsTvp/ula wvSgNekLP9t0iRsaXpPSg7rwHFeNZ3QiUayekTDhkrDQHvciye+9znzdmeQlg1omxG +fUCY/6USM0DzGqMSNI4d7oZvuHGDXwxjD7y4TiYycQFsT0nrkMSvkcjS/USS/y8A8 zVxUsQdTyn1yVUJdCtzXlrC8u6xpO4f3eNPHm1Pfm5EdMsyjKZ7Fx5Uij1vSY00v/B xlONFD9HgPuSg== From: Ammar Faizi To: Jens Axboe Cc: Dylan Yudaken , Ammar Faizi , Pavel Begunkov , GNU/Weeb Mailing List , io-uring Mailing List , Facebook Kernel Team Subject: [PATCH liburing v2 3/3] github: Append `-Wshorten-64-to-32` flag for clang build Date: Thu, 20 Oct 2022 20:14:55 +0700 Message-Id: <20221020131118.13828-4-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020131118.13828-1-ammar.faizi@intel.com> References: <20221020131118.13828-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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. 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