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:56 +0000 (16:21 -0400)
commit222e461a4e629eb1a1628a6d1a3e28489a2e5347
tree8da27047059838d9c7c1d6d78bf9da6ef3edbe62
parent921832f91e341414819e63d5bc4bf9af0ef215df
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.029244 seconds and 4 git commands to generate.