This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]