On Thu, Dec 22 2022, Theo Buehler <t...@openbsd.org> wrote: > On Thu, Dec 22, 2022 at 11:39:41AM +1100, Jonathan Gray wrote: >> On Thu, Dec 22, 2022 at 01:20:32AM +0100, Theo Buehler wrote: >> > > Any concerns regarding the changes in libz? It introduces diff to >> > > upstream, but the recent commits seemed to indicate we have forked >> > > anyway? >> > >> > I've worked hard to keep the diff to upstream minimal. Why are these >> > changes needed? >> >> the warnings are from -Wdeprecated-non-prototype >> >> https://github.com/madler/zlib/issues/633 > > So, can't we fix this by adding -Wno-deprecated-non-prototype to the > kernel build and wait until madler converts upstream?
That's what I initially proposed on my own wip branch: https://github.com/jcourreges/openbsd-src/commit/50d8bd24dadc25aa7e985de898bccf92a60b72ee -Wno-deprecated-non-prototype + -Wno-unknown-warning-option (the latter option because current clang doesn't understand the former). libz built as part of libsa and the bootloaders also needs a similar tweak in MD Makefiles: https://github.com/jcourreges/openbsd-src/commit/2107b762420ef6ea863e349e5faea4254d44fdf9 The build of src/lib/libz doesn't use -Werror and thus doesn't error out. The two commits above are obviously incomplete, other archs need similar handling. Apart from the fact that I authored them, I think they're the sanest way to handle this libz "oddness". Not just because I care about tb's sanity. :) -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE