Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Oct 2013 10:00:51 +0200
From:      =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= <dumbbell@FreeBSD.org>
To:        sbruno@freebsd.org,  "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: [patch] Re: drm2/radeon dfixed_trunc() warnings
Message-ID:  <5253BBB3.3040302@FreeBSD.org>
In-Reply-To: <1381172676.3091.0.camel@localhost>
References:  <1381095549.1586.7.camel@localhost> <1381172676.3091.0.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--x1ipNtLQLGRRcmH6wabjkab9ME0JGRmKi
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 07.10.2013 21:04, Sean Bruno wrote:
> Proposed patch to eliminate this check.  If I understand the macro
> correctly, there's no way for these checks to ever do anything as bit
> shifting an unsigned will simply clear out the value.  So, the check fo=
r
> <0 is completely bogus?

Hello!

I think you're right. I saw Clang reporting those warnings. Coverity has
many more. I didn't want to fix them for now, to ease future merges from
Linux.

The plan is to submit patches to upstream at some point.

Thanks for the patch! I should prepare a branch to store that kind of fix=
es.

--=20
Jean-S=E9bastien P=E9dron


--x1ipNtLQLGRRcmH6wabjkab9ME0JGRmKi
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJTu70ACgkQa+xGJsFYOlNkHACgz4Pjn22okp+9A+Foa9lRonzI
UfAAn1sc/ENt6smUhtzdGhbv5r8wYJIG
=lvmN
-----END PGP SIGNATURE-----

--x1ipNtLQLGRRcmH6wabjkab9ME0JGRmKi--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5253BBB3.3040302>