[LTP] [PATCH] sparse: Use offsetof macro to silence null ptr subtraction warning

Luc Van Oostenryck luc.vanoostenryck@gmail.com
Sat May 21 15:28:00 CEST 2022


On Mon, Mar 21, 2022 at 11:21:19AM +0000, Richard Palethorpe wrote:
> Subtracting (char *)0 is undefined behavior. Newer compilers warn
> about this unless it is done in system headers.

Thanks you, pushed now.

-- Luc 


More information about the ltp mailing list