This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/1] Build GDB as a C++ program by default
- From: Pedro Alves <palves at redhat dot com>
- To: John Baldwin <jhb at freebsd dot org>, gdb-patches at sourceware dot org
- Cc: Walfred Tedeschi <walfred dot tedeschi at intel dot com>, Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Thu, 21 Apr 2016 17:41:00 +0100
- Subject: Re: [PATCH 0/1] Build GDB as a C++ program by default
- Authentication-results: sourceware.org; auth=none
- References: <1461000466-31668-1-git-send-email-palves at redhat dot com> <57164CA9 dot 6080401 at intel dot com> <5717DED3 dot 9020107 at redhat dot com> <4644337 dot bLejKkzcMH at ralph dot baldwin dot cx>
On 04/21/2016 02:42 AM, John Baldwin wrote:
> If you are interested in fixing clang warnings I can submit some patches as
> I tend to build gdb with clang on FreeBSD. It gets really unhappy about
> unused functions from the VEC() generators which adds quite a bit of noise,
I think that one was reported to clang before -- to make it stop
complaining about unused functions defined in headers, and that
they agreed that it was a clang bug. Maybe an option would be to
disable the warning if compiling with clang. If it's not a too-ugly
patch, maybe we could include it.
> but some of the things it finds are actual bugs (though probably harmless
> ones).
Fixing actual bugs is always nice and welcome.
[ Personally, I'd think it great if for each bug clang caught that
gcc didn't, that a bug was filed against gcc. ]
Thanks,
Pedro Alves