Re: [PATCH][next] iio: cros_ec: Avoid -Wflex-array-member-not-at-end warning

From: Gustavo A. R. Silva
Date: Tue Mar 18 2025 - 06:07:38 EST



Did MAX() not work? I would expect it to do compile time comparison of two sizeof()s. It can do other arithmetic no problem, e.g.:
https://elixir.bootlin.com/linux/v6.13.7/source/lib/vsprintf.c#L1097

Yep, that does the trick. :)

Thanks
--
Gustavo