Linus Torvalds writes: (Summary)
It will mean that trivial constants like "5" and "sizeof(x)" won't
simplify, because they have different types.
simplify, because they have different types.
The ?: will give the right combined type anyway, and if you want the type comparison warning, just add a comma-expression with something like like
like like
(t1 *)1 == (t2 *)1
(t1 *)1 == (t2 *)1
to get the type compatibility warning.
to get the type compatibility warning.
Yeah, yeah, maybe none of the VLA cases triggered that, but it seems silly to not just get that obvious constant case right.
simplify, because they have different types.
The ?: will give the right combined type anyway, and if you want the type comparison warning, just add a comma-expression with something like like
like like
(t1 *)1 == (t2 *)1
(t1 *)1 == (t2 *)1
to get the type compatibility warning.
to get the type compatibility warning.
Yeah, yeah, maybe none of the VLA cases triggered that, but it seems silly to not just get that obvious constant case right.