Re: [PATCH 0/1] Build GDB as a C++ program by default

Pedro Alves
2016-04-21T16:41:05Z

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