On Mon, Feb 24, 2020 at 02:02:32PM -0500, Scott Kostyshak wrote:
> On Mon, Feb 24, 2020 at 06:39:25PM +0100, Enrico Forestieri wrote:
> > On Mon, Feb 24, 2020 at 11:05:51AM -0500, Scott Kostyshak wrote:
> > > 
> > > Apparently another approach would be to add the following:
> > > 
> > >   memset(&padded_event, 0, sizeof(padded_event));
> > > 
> > > Valgrind does not complain when this line is added to the union patch.
> > 
> > I am baffled. The last suggestion I have is trying
> > 
> >     alignas(32) xcb_selection_notify_event_t nev = {0};
> 
> Valgrind still gives the error. I attach the full Valgrind log.

Sigh. The final attempt would be doing the same as it is done in Qt:

        struct alignas(32) padded_event
                : xcb_selection_notify_event_t {};
        padded_event nev = {};

If also this fails, I give up.

-- 
Enrico
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to