[Bug other/58319] explicit cast doesn't disable -Wconversion warning.

2013-09-07 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58319 Manuel López-Ibáñez changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment

[Bug other/58319] explicit cast doesn't disable -Wconversion warning.

2013-09-05 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58319 --- Comment #3 from Jonathan Wakely --- You can ensure the value is not too large for the target: X x = { .field = ( u & (-1u >> 1) ) };

[Bug other/58319] explicit cast doesn't disable -Wconversion warning.

2013-09-05 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58319 --- Comment #2 from Pawel Sikora --- (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

[Bug other/58319] explicit cast doesn't disable -Wconversion warning.

2013-09-05 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58319 Paolo Carlini changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---