Re: [PATCH] sequencer: shut up clang warning

2016-11-09 Thread Jakub Narębski
W dniu 09.11.2016 o 14:56, Johannes Schindelin pisze: > When comparing a value of type `enum todo_command` with a value that is > outside the defined enum constants, clang greets the developer with this > warning: > > comparison of constant 2 with expression of type > 'const enum todo

Re: [PATCH] sequencer: shut up clang warning

2016-11-09 Thread Jeff King
On Wed, Nov 09, 2016 at 02:56:25PM +0100, Johannes Schindelin wrote: > When comparing a value of type `enum todo_command` with a value that is > outside the defined enum constants, clang greets the developer with this > warning: > > comparison of constant 2 with expression of type > '

[PATCH] sequencer: shut up clang warning

2016-11-09 Thread Johannes Schindelin
When comparing a value of type `enum todo_command` with a value that is outside the defined enum constants, clang greets the developer with this warning: comparison of constant 2 with expression of type 'const enum todo_command' is always true While this is arguably true *iff* the