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:14:46 +0000 (16:14 -0400)
commit109be0da5a46c0280f05e4a31f3ba9aa9183ad36
treef72d8ca2b97ce90436f910398014f56971d907c1
parent27df255210fe8e836c36fa1d924d2a24e585ebca
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.024796 seconds and 4 git commands to generate.