Re: how to deal with variable set but not used warnings?

2018-06-04 Thread Rick Macklem
Matthew Macy wrote: >On Sun, Jun 3, 2018 at 2:40 PM, Theron wrote: >>> 4. Disable the stupid warning in the Makefile / build system. If you don't >>> care, and there's a good reason for what you are doing (sounds like there >>> is), better to just disable the warning as so much useless noise. >>>

Re: how to deal with variable set but not used warnings?

2018-06-03 Thread Matthew Macy
On Sun, Jun 3, 2018 at 2:40 PM, Theron wrote: >> 4. Disable the stupid warning in the Makefile / build system. If you don't >> care, and there's a good reason for what you are doing (sounds like there >> is), better to just disable the warning as so much useless noise. >> >> Warner >>

Re: how to deal with variable set but not used warnings?

2018-06-03 Thread Steve Kargl
On Sun, Jun 03, 2018 at 09:28:47PM +, Rick Macklem wrote: > mmacy has sent me a bunch of warnings of the "variable set but not used" kind > generated by gcc8. > > When I've looked at the code, these are for RPC arguments I parse but do not > use at this time. > I'd like to leave the code in

Re: how to deal with variable set but not used warnings?

2018-06-03 Thread Cy Schubert
In message , Warner Losh writes: > On Sun, Jun 3, 2018 at 3:28 PM, Rick Macklem wrote: > > > mmacy has sent me a bunch of warnings of the "variable set but not used" > > kind > > generated by gcc8. > > > > When I've looked at the code, these are for RPC arguments I parse but do > > not > > use

Re: how to deal with variable set but not used warnings?

2018-06-03 Thread Theron
On 06/03/18 17:33, Warner Losh wrote: On Sun, Jun 3, 2018 at 3:28 PM, Rick Macklem wrote: mmacy has sent me a bunch of warnings of the "variable set but not used" kind generated by gcc8. When I've looked at the code, these are for RPC arguments I parse but do not use at this time. I'd like

Re: how to deal with variable set but not used warnings?

2018-06-03 Thread Warner Losh
On Sun, Jun 3, 2018 at 3:28 PM, Rick Macklem wrote: > mmacy has sent me a bunch of warnings of the "variable set but not used" > kind > generated by gcc8. > > When I've looked at the code, these are for RPC arguments I parse but do > not > use at this time. > I'd like to leave the code in

how to deal with variable set but not used warnings?

2018-06-03 Thread Rick Macklem
mmacy has sent me a bunch of warnings of the "variable set but not used" kind generated by gcc8. When I've looked at the code, these are for RPC arguments I parse but do not use at this time. I'd like to leave the code in place, since these arguments may be needed in the future and it is hard to