Fix: clang 'constant-out-of-range-compare' warning
authorZifei Tong <zifeitong@gmail.com>
Tue, 4 Mar 2014 13:27:38 +0000 (21:27 +0800)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 10 Mar 2014 20:21:51 +0000 (16:21 -0400)
commit49f9c814b5e7ea33016bf7e8d481b76893c16397
tree602f8dcac6a81c0ed15bc176d756f823bd7bd676
parent23c1fab9b8c518358433f10e15390503654b24fe
Fix: clang 'constant-out-of-range-compare' warning

This patch fixes two 'autological-constant-out-of-range-compare' clang
warnings caused by comparing enum type variables with -1.

It's possible that compilers optimize these two comparisons away.

Signed-off-by: Zifei Tong <zifeitong@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/add_context.c
src/bin/lttng/commands/enable_channels.c
This page took 0.025275 seconds and 4 git commands to generate.