Quantcast
Channel: lkml.org : Ganesh Sittampalam
Viewing all articles
Browse latest Browse all 627

Re: [PATCH] kernel.h: Skip single-eval logic on literals in min()/ ...

$
0
0
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.

Viewing all articles
Browse latest Browse all 627

Trending Articles