Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4111973rwb; Mon, 31 Jul 2023 01:13:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGaRgVpORa9gsIQLAVYAUhQAbLJiHu98WrGkqcCCBd/biYYFJPid4Q3We2lMGPNgKdWsIrJ X-Received: by 2002:a05:6358:278c:b0:133:a55:7e26 with SMTP id l12-20020a056358278c00b001330a557e26mr5508246rwb.7.1690791211009; Mon, 31 Jul 2023 01:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690791210; cv=none; d=google.com; s=arc-20160816; b=wlQ5dnsmpmUZCnnBoGj7GBRsSKuEfwO0/MQWNeh/bMJkafgi8ubVWmJNfAFKQ0FzuG 6cfujsjygDjU4POl+4/FbWMaJfdrWwoEz5WrUF0b0QizCL6EGD+pgy87V5RYr9EIPSWh 3LMtgK7ANw4A+mtKRE9YuIdbz7Yrywwleh/9ykhEKHqG9ipSKk6E8908bCEYzI0ehBBz z2LK/9ZbxYcR4h9QcZBv+7sQqnvrqQcWOBwBsH5HpXyxYDE4S0zdZeOKoZH9NOkMNZGf uwe4EFxQmk2VdM3Hm7z0luM6pSGJgA1VDK+j1izQHfUjHJPfzsC13aOt+KB4g3FFDGz1 YTSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=faTFcngb/tqYY5bFMhBTKPLLUd3ljB3oemomtmURKJI=; fh=Q4MvkSz8FYcHPE+pFaGSR8c4aLVk8U0IU8szbKVfuTg=; b=u7lyVWdI0uldjgbGsit/gUBxPuWY9kZ2FMJD/bkMnoNExNwilif3YIuDkkLJiQp/7o +wfymYsCLwyFr+w9RozqzEOfmIFqDNDF/Ex8W6+RYHPDx9RYIXv3hcO733jWubi+LqQo 65fv/ClZZw9vqQnjRf+aEZE9lRADG5P0/EGb0/F+dqE+FDXGu/tVvfVu88l7AZd9r3Dv Nm8xC6r/48ZA+bQ6vD5oZCkv4JFeLRZjyD8kSjam23zZVvc6KJpYa5RMkqUEMu7XHCLc fMRUkVtIZD0Vth8TiJOJ0mbHJ4ydZ0yK6KUuwXA9pNarF+Q9zYvsvEiq9NDwzAhFaO1F RENw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i9-20020a63b309000000b0054fe295d487si6687740pgf.434.2023.07.31.01.13.19; Mon, 31 Jul 2023 01:13:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231293AbjGaHTl (ORCPT + 99 others); Mon, 31 Jul 2023 03:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjGaHTA (ORCPT ); Mon, 31 Jul 2023 03:19:00 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D5E26A9; Mon, 31 Jul 2023 00:17:28 -0700 (PDT) X-QQ-mid: bizesmtp77t1690787842t5hgzyql Received: from linux-lab-host.localdomain ( [61.141.77.223]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 31 Jul 2023 15:17:21 +0800 (CST) X-QQ-SSF: 01200000000000E0X000000A0000000 X-QQ-FEAT: R3vftN8GVq9Ng9++flvTtWIv9fJMIgWnVuZ/h8rqVeqXQUDAkYuVDG2vAG0xb vNE1rBohq/0oI7Kkc7FNgHX1zVpKFcioSl7WZtCZl8loiwnyzT1V8OVLYEJGMogqGAcV2sk 2v3CpYjQN6oN7gEp8Zx+syH7LV0yo2vU8VKmBGoH92StSy2WNCesM725SmTkpRLWCvGuawi hNW30Pa0UfXMmobjorvIFkWF7NVnKICaDhqpuVSGtumU9BsiIzilTLT6P6d4GkNnsqnZqaI 3viVZdhvI8KamgGHRsftoqFLjYKU+ZOINyyFiL9qiOuENdcqeDUw8JBnFgWHec7pzxxNFt8 GajSuilPI3Y+qY5uSev56okxfJjiezA9rHBz0vdB7zu1MbPWCZC0ReYUWEMeL9jY6haUy0V X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9804258956060213056 From: Zhangjin Wu To: linux@weissschuh.net Cc: falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, tanyuan@tinylab.org, w@1wt.eu Subject: Re: [PATCH 4/4] selftests/nolibc: enable -Wall compiler warnings Date: Mon, 31 Jul 2023 15:17:18 +0800 Message-Id: <20230731071718.21085-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230731-nolibc-warnings-v1-4-74973d2a52d7@weissschuh.net> References: <20230731-nolibc-warnings-v1-4-74973d2a52d7@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas > 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..72227d75c6da 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 -Wall \ Very good static analyzer support. What about further add more options? +CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -Wall -Wextra -Werror\ A simple test shows, it can catch more issues. Thanks, Zhangjin > $(call cc-option,-fno-stack-protector) \ > $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) > LDFLAGS := -s > > -- > 2.41.0