From: Junio C Hamano Date: Wed, 16 Jan 2019 04:16:04 GMT Subject: Re: [PATCH 1/5] compat/obstack: fix -Wcast-function-type warnings Message-ID: In-Reply-To: <20190115235546.GF840@szeder.dev> SZEDER Gábor writes: >> Well, first I'm not sure what changes Ævar meant to be backported. >> Back then I briefly glanced at glibc's gitweb [1], but didn't see >> anything remotely relevant to these compiler errors. > > So, I looked at the gnulib repository, where glibc got it's > obstack.{c,h} from, and it does have a fix for this issue in commit > 127ed6a3e (obstack: avoid potentially-nonportable function casts, > 2014-11-04): > > http://git.savannah.gnu.org/cgit/gnulib.git/commit?id=127ed6a3ea9c46452f079dee50382dc1f70ea796 > > It chose basically the same approach as my fix, i.e. storing pointers > to functions with different signatures in an union. However,, the > differences between our and their obstack.{c,h} are way too big to > backport their patch. Thanks. In the meantime, I've queued your fix in my tree, and with your digging, we can say we did due diligence and apply a local fix with conscience ;-).