Re: why( warning: left-hand operand of comma expression has no effect)

2012-11-20 Thread Marc Lehmann
On Tue, Nov 20, 2012 at 02:54:50AM +, Sam Bobroff sbobr...@shoretel.com wrote: Sorry if you felt that I'd disrespected your code, that wasn't my A hack is something that happens to work, but is not well done. This use of assert is part of the C language that is well supported and in

Re: why( warning: left-hand operand of comma expression has no effect)

2012-11-20 Thread Alex Leone
I tend to use with the string literal: assert (libev: watcher has invalid priority ABSPRI (w) = 0 ABSPRI (w) NUMPRI); On Tue, Nov 20, 2012 at 2:34 AM, Marc Lehmann schm...@schmorp.de wrote: On Tue, Nov 20, 2012 at 02:54:50AM +, Sam Bobroff sbobr...@shoretel.com wrote: Sorry if you

Re: why( warning: left-hand operand of comma expression has no effect)

2012-11-20 Thread Sam Bobroff
On 20/11/12 21:34, Marc Lehmann wrote: On Tue, Nov 20, 2012 at 02:54:50AM +, Sam Bobroff sbobr...@shoretel.com wrote: Sorry if you felt that I'd disrespected your code, that wasn't my A hack is something that happens to work, but is not well done. This use of assert is part of the C