gcc4 warnings -Wuninitialized -Wfloat-equal and -Wconversion

Jaime Torres jtamate at gmail.com
Mon Sep 14 19:11:58 BST 2009


On Monday 14 September 2009 11:41:18 David Faure wrote:
> On Friday 28 August 2009, Jaime Torres wrote:
> > The following patch removes ksycocadict conversion warnings:
> 
> Looks good, please apply.

Done. 

> Interesting timing, last week I made a merge request to fix some
>  -Wconversion warnings in Qt's headers (and Thiago merged it a few days
>  ago).

> But I don't know how to fix the warnings that come from member vars that
> use bitfields though.
> 
This is what I've found:

Use of signed:1 bit-fields is usually a mistake in the code, since the 
user doesn't normally intend to use values 0 and -1. Warning if 1 might 
be stored in such a bit-field seems appropriate for -Wconversion.

from the gcc mailing list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090914/2167928a/attachment.sig>


More information about the kde-core-devel mailing list