search for: d50608

Displaying 2 results from an estimated 2 matches for "d50608".

Did you mean: d20608
2018 Aug 12
4
GCC 5 and -Wstrict-aliasing in JSON.h
...vior, we might invoke the optimizers wrath. The warning is a nice hint that this could happen. While writing this I realized that LH_Mouse's double static_cast also silences the warning, and I think that's a nicer workaround, so I put up a patch for that too, here: https://reviews.llvm.org/D50608 Let me know what you think, - Kim On Fri, Aug 10, 2018 at 11:30 PM Kim Gräsman <kim.grasman at gmail.com> wrote: > > On Fri, Aug 10, 2018 at 6:08 PM, Sam McCall <sam.mccall at gmail.com> wrote: > > json::Value in JSON.h is a discriminated union. > > The storage is a c...
2018 Aug 10
2
GCC 5 and -Wstrict-aliasing in JSON.h
json::Value in JSON.h is a discriminated union. The storage is a char array of appropriate type and alignment. The storage holds one object at a time, it's initialized (and for nontrivial types, destroyed) at the right times to ensure this. The cast is only to the type of object that's already there, there's no magic here. On Fri, Aug 10, 2018, 17:52 Andrew Haley <aph at