From nobody Sun Feb 12 21:13:02 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFKv31tr5z3rLHb; Sun, 12 Feb 2023 21:13:03 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFKv31FwMz4J7t; Sun, 12 Feb 2023 21:13:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676236383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NsYwT3HfqjUOQyiK60I8Jahsvj4a97xcA5xqJlMMgIs=; b=x4Jl1Ioc98ar8Ykp0tkYi7Zh5vtUjiblguFZtFW7PGdNMnQR2s11z1Ib3Y5j1lWsNsV8wW yKWs5a4E1Iaa/5gS6TARWth5Q7pkQ1xxs+VKCKv6as0cKf17kLZcttuYOhwBHjCsP34SOD 4kboC0m/2PqtVY3nuHsZB3RzySwCHEC47FPkVKePZfSD6YIP2fmlm2qomJb3R/aOZiE8la B7zzTYEoCTcIJgVn8Ee7SULvN+VgdOE0UZxZBefUx1tVrYl4UdwNFLAGnp2cUfIjHhSilX v40efr/dEPFfRUlewczyYgo28C2jC41Jp8iulrUdG533zkkKMjkYRxeDBOvizw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676236383; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NsYwT3HfqjUOQyiK60I8Jahsvj4a97xcA5xqJlMMgIs=; b=brYchLE3A3pjBO9/ySQXTt4g0P1Y8IcYAwnzqJTrYzep2kAogVoRxb0uOKl7TaPPgYb1Nj /eUsWPSskxOH6vceO+PFB3yoKDMXeBXNT/Jtzp7TB4SchTNwVBi+hqkzsLvDfKsmEheouh 2CGExLhBHyNbSxwvgU/ocsCrZhU2HhfvLyRwPt0Sd74n260dFyxhuCQURO2PnGlSAkV3yp kfMBHyHiRJx8UpmKyjt+TKaEvyBRRqAUae4c4EwlfPwk4T1E+InaUC35w99y9RSXtthlgW +GwY7bETfM2B3J8jAGEDUmcDVjwY712O3vgxwFq0ErBgydxXjotqaWG4MH7g0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676236383; a=rsa-sha256; cv=none; b=TiG9v3fhf/E+zOLI7TtFbkuG9rP8RChUDyPfu4n8JvgDNQoKUHXCXyr9Zas4tKCaPhYDF+ umVbAODD8zE0xlmoRFDQT5Luci92oRaj/Szhbe5t5bV7PC9IxCnpoPJqZzgJxZkreiuEZz kzzpZZuZRQU9wecDjv8722oo/rOhCXeoxxnP5YV3DMRgN6Nj/SMBO3g43uMgKbelB7lBTQ nO/m5Plw8NNSoLoOg5Irb/38z+EFxpqvPonAa/8E2Z0wIygahGj7C7gqn7HSMpxFmGnUPR 2GyuK4my4S8qfu0VD07uN+hFEfLPNRC2O2/CBhd2NmMnoQ9fN8MN3LT4mm+mVA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFKv275THztLL; Sun, 12 Feb 2023 21:13:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31CLD2wi012259; Sun, 12 Feb 2023 21:13:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CLD2av012258; Sun, 12 Feb 2023 21:13:02 GMT (envelope-from git) Date: Sun, 12 Feb 2023 21:13:02 GMT Message-Id: <202302122113.31CLD2av012258@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: eca005d8531f - main - zlib: silence K&R warns List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eca005d8531fd153f46f941f3101e73cdf181a0b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=eca005d8531fd153f46f941f3101e73cdf181a0b commit eca005d8531fd153f46f941f3101e73cdf181a0b Author: Mateusz Guzik AuthorDate: 2023-02-12 21:12:34 +0000 Commit: Mateusz Guzik CommitDate: 2023-02-12 21:12:34 +0000 zlib: silence K&R warns Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/conf/files | 18 +++++++++++------- sys/modules/zlib/Makefile | 2 ++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/sys/conf/files b/sys/conf/files index 9171b434a7bf..53f90f7afc22 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4099,28 +4099,32 @@ libkern/strtouq.c standard libkern/strvalid.c standard libkern/timingsafe_bcmp.c standard contrib/zlib/adler32.c optional crypto | geom_uzip | \ - mxge | ddb_ctf | gzio | zfs | zlib + mxge | ddb_ctf | gzio | zfs | zlib \ + compile-with "${NORMAL_C} -Wno-deprecated-non-prototype" contrib/zlib/compress.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ - compile-with "${NORMAL_C} -Wno-cast-qual" + compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype" contrib/zlib/crc32.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" contrib/zlib/deflate.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ - compile-with "${NORMAL_C} -Wno-cast-qual" + compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype" contrib/zlib/inffast.c optional crypto | geom_uzip | \ - mxge | ddb_ctf | gzio | zfs | zlib + mxge | ddb_ctf | gzio | zfs | zlib \ + compile-with "${NORMAL_C} -Wno-deprecated-non-prototype" contrib/zlib/inflate.c optional crypto | geom_uzip | \ - mxge | ddb_ctf | gzio | zfs | zlib + mxge | ddb_ctf | gzio | zfs | zlib \ + compile-with "${NORMAL_C} -Wno-deprecated-non-prototype" contrib/zlib/inftrees.c optional crypto | geom_uzip | \ - mxge | ddb_ctf | gzio | zfs | zlib + mxge | ddb_ctf | gzio | zfs | zlib \ + compile-with "${NORMAL_C} -Wno-deprecated-non-prototype" contrib/zlib/trees.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" contrib/zlib/uncompr.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ - compile-with "${NORMAL_C} -Wno-cast-qual" + compile-with "${NORMAL_C} -Wno-cast-qual -Wno-deprecated-non-prototype" contrib/zlib/zutil.c optional crypto | geom_uzip | \ mxge | ddb_ctf | gzio | zfs | zlib \ compile-with "${NORMAL_C} ${NO_WSTRICT_PROTOTYPES}" diff --git a/sys/modules/zlib/Makefile b/sys/modules/zlib/Makefile index 6391255e512b..178d3a3f7ab7 100644 --- a/sys/modules/zlib/Makefile +++ b/sys/modules/zlib/Makefile @@ -25,4 +25,6 @@ CWARNFLAGS.crc32.c+=${NO_WSTRICT_PROTOTYPES} # crc32.c:586 CWARNFLAGS.trees.c+=${NO_WSTRICT_PROTOTYPES} # trees.c:232 CWARNFLAGS.zutil.c+=${NO_WSTRICT_PROTOTYPES} # zutil.c:27,32 +CWARNFLAGS+=-Wno-deprecated-non-prototype + .include