This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/35592] Want attribute to enable precision loss warning



------- Comment #4 from felix-gcc at fefe dot de  2008-04-01 16:09 -------
I'm not familiar enough with how gcc works to say whether warning about
precision loss that turns out important later on can be done at all.

But I think we should not reject an idea because it only handles 60% of the
cases.  Instead we should be happy we only have to worry about the other 40%,
not about 100% from then on.

I agree that signed int to size_t conversion for memcpy should also be warned
about by some attribute.  Could be done by the same attribute.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35592


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]