http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58319
--- Comment #2 from Pawel Sikora <pluto at agmk dot net> --- (In reply to Paolo Carlini from comment #1) > Your cast does nothing, because your typeof (or decltype) is just unsigned > int. Given that, the warning makes sense to me and certainly is well known. so how can i cast this value to avoid warning?