-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler warning cleanup: is_signed_type: compare -1 to 1
Comparing -1 to 0 triggers compiler warnings (gcc -Wtype-limits and -Wbool-compare) and Coverity warning "Macro compares unsigned to 0". Comparing -1 to 1 instead takes care of silencing those warnings while keeping the same behavior. Signed-off-by: Mathieu Desnoyers <[email protected]> Change-Id: I7d3a2d5a813838cef0e7b42d8c80ccf46f27ac62 Reviewed-on: https://review.lttng.org/c/babeltrace/+/5188 CI-Build: Jérémie Galarneau <[email protected]> Tested-by: jenkins <[email protected]> Reviewed-by: Jérémie Galarneau <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters