From patchwork Tue Aug 1 05:30:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13335782 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 95697C0015E for ; Tue, 1 Aug 2023 05:30:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjHAFab (ORCPT ); Tue, 1 Aug 2023 01:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbjHAFa1 (ORCPT ); Tue, 1 Aug 2023 01:30:27 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F04E1BF1; Mon, 31 Jul 2023 22:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690867813; bh=lFg1vkQ35QpMNiPZG92VmH5E2lHoFnctsQX4/bx0f88=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=IAd1+tBymHSE0y4XvTvxwpfywlvdj+FzyaFGcsuVczFg2Vzc9Aheiyk7EKa3Vxboq aCnJEhdrhgM3oHyAFwFCwhP8NiuPdrocJFiBYsUM4Iegc3wA4xIOARigTiYe5+1zvW nBzSsgMtZ8O0Do71ec3KDC3LJijkfZyXNAVmcDYk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 01 Aug 2023 07:30:17 +0200 Subject: [PATCH v2 10/10] selftests/nolibc: enable compiler warnings MIME-Version: 1.0 Message-Id: <20230801-nolibc-warnings-v2-10-1ba5ca57bd9b@weissschuh.net> References: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> In-Reply-To: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690867811; l=924; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=lFg1vkQ35QpMNiPZG92VmH5E2lHoFnctsQX4/bx0f88=; b=42I9jdwYI9NMCidgc4CYrdDi1RHSUkiVh+XQnznHQaz3fzAAJqconUyQunqWm3YqCWTbE0xai M1VuwuHZ1zpD5mBQR+eHGv8pdmJnvKK6lJDRONGmN4hm9Fcd7Ap/h35 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org It will help the developers to avoid cruft and detect some bugs. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index f42adef87e12..d6c24c37120c 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -79,7 +79,7 @@ endif CFLAGS_s390 = -m64 CFLAGS_mips = -EL CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) -CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ +CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -W -Wall -Wextra \ $(call cc-option,-fno-stack-protector) \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s