From owner-svn-src-projects@freebsd.org Thu Feb 13 19:25:51 2020 Return-Path: Delivered-To: svn-src-projects@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7694E232529 for ; Thu, 13 Feb 2020 19:25:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48JRLl2Xsvz4RyT; Thu, 13 Feb 2020 19:25:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 389EEFA79; Thu, 13 Feb 2020 19:25:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 01DJPpT2057322; Thu, 13 Feb 2020 19:25:51 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 01DJPor4057318; Thu, 13 Feb 2020 19:25:50 GMT (envelope-from dim@FreeBSD.org) Message-Id: <202002131925.01DJPor4057318@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 13 Feb 2020 19:25:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r357872 - in projects/clang1000-import/sys: conf modules/ce modules/cp X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: in projects/clang1000-import/sys: conf modules/ce modules/cp X-SVN-Commit-Revision: 357872 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2020 19:25:51 -0000 Author: dim Date: Thu Feb 13 19:25:49 2020 New Revision: 357872 URL: https://svnweb.freebsd.org/changeset/base/357872 Log: Disable new clang 10.0.0 warnings about misleading indentation in ce(4) and cp(4). These are false positives, since some of the driver source has been deliberately obfuscated. Modified: projects/clang1000-import/sys/conf/files.i386 projects/clang1000-import/sys/conf/kern.mk projects/clang1000-import/sys/modules/ce/Makefile projects/clang1000-import/sys/modules/cp/Makefile Modified: projects/clang1000-import/sys/conf/files.i386 ============================================================================== --- projects/clang1000-import/sys/conf/files.i386 Thu Feb 13 19:12:07 2020 (r357871) +++ projects/clang1000-import/sys/conf/files.i386 Thu Feb 13 19:25:49 2020 (r357872) @@ -93,8 +93,9 @@ dev/agp/agp_via.c optional agp dev/ce/ceddk.c optional ce dev/ce/if_ce.c optional ce dev/ce/tau32-ddk.c optional ce \ - compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION}" -dev/cp/cpddk.c optional cp + compile-with "${NORMAL_C} ${NO_WCONSTANT_CONVERSION} ${NO_WMISLEADING_INDENTATION}" +dev/cp/cpddk.c optional cp \ + compile-with "${NORMAL_C} ${NO_WMISLEADING_INDENTATION}" dev/cp/if_cp.c optional cp dev/ctau/ctau.c optional ctau dev/ctau/ctddk.c optional ctau Modified: projects/clang1000-import/sys/conf/kern.mk ============================================================================== --- projects/clang1000-import/sys/conf/kern.mk Thu Feb 13 19:12:07 2020 (r357871) +++ projects/clang1000-import/sys/conf/kern.mk Thu Feb 13 19:25:49 2020 (r357872) @@ -37,6 +37,9 @@ CWARNEXTRA+= -Wno-error-shift-negative-value .if ${COMPILER_VERSION} >= 40000 CWARNEXTRA+= -Wno-address-of-packed-member .endif +.if ${COMPILER_VERSION} >= 100000 +NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation +.endif .endif .if ${COMPILER_TYPE} == "gcc" Modified: projects/clang1000-import/sys/modules/ce/Makefile ============================================================================== --- projects/clang1000-import/sys/modules/ce/Makefile Thu Feb 13 19:12:07 2020 (r357871) +++ projects/clang1000-import/sys/modules/ce/Makefile Thu Feb 13 19:25:49 2020 (r357872) @@ -27,4 +27,5 @@ opt_ng_cronyx.h: .include -CWARNFLAGS.tau32-ddk.c= ${NO_WCONSTANT_CONVERSION} +CWARNFLAGS.tau32-ddk.c+= ${NO_WCONSTANT_CONVERSION} +CWARNFLAGS.tau32-ddk.c+= ${NO_WMISLEADING_INDENTATION} Modified: projects/clang1000-import/sys/modules/cp/Makefile ============================================================================== --- projects/clang1000-import/sys/modules/cp/Makefile Thu Feb 13 19:12:07 2020 (r357871) +++ projects/clang1000-import/sys/modules/cp/Makefile Thu Feb 13 19:25:49 2020 (r357872) @@ -26,3 +26,5 @@ opt_ng_cronyx.h: .endif .include + +CWARNFLAGS.cpddk.c+= ${NO_WMISLEADING_INDENTATION}