On 01/14/2011 10:06 AM, Dave Smith wrote:
> On 01/14/2011 09:57 AM, Joshua Marsh wrote:
>> I personally like it the way it is. Implicit conversion is fairly
>> normal from the kernel projects I've worked on. If you really want to
>> be a stickler though and don't like -Wconversion, c++ offers explicit
>> casting. This will usually signify to someone whose looking at your
>> code that you are doing some magic.
> Which way do you like it? The way RHEL does it or the rest of the world?
>
> With RHEL, with *and* without using -Wconversion, the following happens:
>
>           int i;
>           long l = 42;
>           double d = 42;
>           i = l;   # No warning here
>           i = d;  # Warning here
>
> With Ubuntu, with  -Wconversion, the following happens:
>
>           int i;
>           long l = 42;
>           double d = 42;
>           i = l;   # Warning here
>           i = d;  # Warning here
>
> With Ubuntu, without -Wconversion, you get *no* warnings.
>
> This inconsistency is a problem.
>
> --Dave
>
What versions of gcc are on RHEL vs. Fedora vs. Ubuntu. If I had to 
figure it out, I would first investigate whether the change is a change 
in gcc, not something that Redhat is doing.

Lane

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to