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: [RFA 0/6] Add -Wunused-but-set-parameter and -Wunused-but-set-variable


On 07/21/2016 12:56 PM, Pedro Alves wrote:
> On 07/21/2016 12:35 PM, Pedro Alves wrote:
>> On 07/21/2016 12:10 PM, Yao Qi wrote:
>>> On Thu, Jul 21, 2016 at 11:38 AM, Pedro Alves <palves@redhat.com> wrote:
>>
>>>>
>>>> I'd think it'd be acceptable to just build on a couple of the
>>>> more common hosts, in the name of forward progress.
>>>>
>>>
>>> Yes, I agree.
>>>
>>
>> I had a mingw-w64 build tree already handy, so I gave it a try.  It
>> needs a couple patches.  I'll send them as reply to this email.
> 
> I tried a cross to macOS/OS X/darwin/whatever-it's-called-nowadays
> now, with -Wunused-but-set-parameter -Wunused-but-set-variable + -O2,
> and no new warnings appeared.

djgpp [1] has a few pre-existing build errors due to C++, but after 
fixing those, -Wunused-but-set-parameter -Wunused-but-set-variable
introduce no new problems.

[1] - Installed gcc 6.1 from here ftp://ftp.delorie.com/pub/djgpp/rpms/

Thanks,
Pedro Alves


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