From: Johan Hedberg <johan.hedberg@gmail.com>
To: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC BlueZ 00/22] Using clang for compiling BlueZ
Date: Tue, 14 Feb 2012 14:43:58 +0200 [thread overview]
Message-ID: <20120214124358.GC12437@x220.ger.corp.intel.com> (raw)
In-Reply-To: <1328910007-25604-1-git-send-email-vinicius.gomes@openbossa.org>
Hi Vinicius,
On Fri, Feb 10, 2012, Vinicius Costa Gomes wrote:
> After hearing so much about LLVM/Clang[1][2], I decided to give it a
> try on a project that I care about and see how would it go. The first
> step was cleaning all the warnings that it could find. This is the
> result.
>
> One thing that I really liked was that the warnings are useful, making
> it very easy to make these changes. In my opinion, Clang is worth
> trying for this feature alone.
>
> As a bonus point, we can now use Clang static analyzer on our code
> base, if someone wants to take a look at what it looks like, here's an
> example[3]. The analyzer still doesn't catch everything that paid
> alternatives do but it is improving.
>
> --
> [1] http://llvm.org/
>
> [2] http://clang.llvm.org/
>
> [3] http://littlechina.org/~vcgomes/bluez-static-analysis/2012-02-10-1/
>
>
> Vinicius Costa Gomes (22):
> lib: Add functions to deal with unaligned access without conversion
> lib: Add functions to storing values in unaligned places
> lib: Fix the unaligned memory "getters" not receiving a const pointer
> tools: Fix using old-style initializers
> sap: Fix clang compiler warnings related to unaligned memory access
> lib: Fix using old-style initializers
> sdp: Fix clang compiler warnings related to unaligned memory access
> l2test: Fix clang compiler warning related to unaligned memory access
> rctest: Fix clang compiler warnings related to unaligned memory
> access
> dun: Fix using old-style initializers
> scotest: Fix clang compiler warnings related to unaligned memory
> access
> ipctest: Fix using the format specifier "as"
> audio: Fix clang compiler warnings related to unaligned memory access
> audio: Fix clang compiler warnings regarding implicit enum conversion
> sap: Fix compiler warnings related to unaligned memory access
> network: Fix clang compiler warnings related to unaligned memory
> access
> mgmtops: Fix doing a useless memset()
> adaptername: Fix clang warning related to unaligned memory access
> sdp: Fix clang compiler warnings related to unaligned memory access
> hciconfig: Fix using old-style initializers
> hciconfig: Fix compiler warnings related to unaligned memory access
> hciemu: Fix clang compiler warnings related to unaligned memory
> access
>
> audio/avrcp.c | 8 ++--
> audio/sink.c | 4 +-
> audio/sink.h | 2 +-
> audio/source.c | 4 +-
> audio/source.h | 2 +-
> compat/dun.c | 4 +-
> lib/bluetooth.h | 124 ++++++++++++++++++++++++++++++++++++++++++++-----
> lib/hci.c | 4 +-
> lib/sdp.c | 66 +++++++++++++-------------
> network/server.c | 8 ++--
> plugins/adaptername.c | 2 +-
> plugins/mgmtops.c | 4 --
> sap/sap-u8500.c | 10 ++--
> sap/server.c | 10 +---
> src/sdpd-request.c | 42 ++++++++--------
> src/sdpd-service.c | 21 ++++----
> test/hciemu.c | 9 ++-
> test/ipctest.c | 12 ++--
> test/l2test.c | 8 ++--
> test/rctest.c | 4 +-
> test/scotest.c | 4 +-
> tools/hciconfig.c | 6 +-
> tools/hcitool.c | 2 +-
> tools/rfcomm.c | 2 +-
> 24 files changed, 229 insertions(+), 133 deletions(-)
I've applied the patches which fulfilled the following criteria:
- Made sense
- No objections from me or Marcel
- Applied cleanly
- No compiler warnings or errors introduced
This amounted to the following patches: 4, 6, 10, 14, 16, 17, 20 and 21.
Johan
prev parent reply other threads:[~2012-02-14 12:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 21:39 [RFC BlueZ 00/22] Using clang for compiling BlueZ Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 01/22] lib: Add functions to deal with unaligned access without conversion Vinicius Costa Gomes
2012-02-11 11:25 ` Marcel Holtmann
2012-02-10 21:39 ` [RFC BlueZ 02/22] lib: Add functions to storing values in unaligned places Vinicius Costa Gomes
2012-02-11 11:27 ` Marcel Holtmann
2012-02-10 21:39 ` [RFC BlueZ 03/22] lib: Fix the unaligned memory "getters" not receiving a const pointer Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 04/22] tools: Fix using old-style initializers Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 05/22] sap: Fix clang compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 06/22] lib: Fix using old-style initializers Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 07/22] sdp: Fix clang compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 08/22] l2test: Fix clang compiler warning " Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 09/22] rctest: Fix clang compiler warnings " Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 10/22] dun: Fix using old-style initializers Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 11/22] scotest: Fix clang compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 12/22] ipctest: Fix using the format specifier "as" Vinicius Costa Gomes
2012-02-11 11:31 ` Marcel Holtmann
2012-02-10 21:39 ` [RFC BlueZ 13/22] audio: Fix clang compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:39 ` [RFC BlueZ 14/22] audio: Fix clang compiler warnings regarding implicit enum conversion Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 15/22] sap: Fix compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 16/22] network: Fix clang " Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 17/22] mgmtops: Fix doing a useless memset() Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 18/22] adaptername: Fix clang warning related to unaligned memory access Vinicius Costa Gomes
2012-02-14 12:39 ` Johan Hedberg
2012-02-10 21:40 ` [RFC BlueZ 19/22] sdp: Fix clang compiler warnings " Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 20/22] hciconfig: Fix using old-style initializers Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 21/22] hciconfig: Fix compiler warnings related to unaligned memory access Vinicius Costa Gomes
2012-02-10 21:40 ` [RFC BlueZ 22/22] hciemu: Fix clang " Vinicius Costa Gomes
2012-02-14 12:43 ` Johan Hedberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120214124358.GC12437@x220.ger.corp.intel.com \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=vinicius.gomes@openbossa.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).