Commit 21c46753 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

groups.c test: fix for clang

clang complains:
> clang -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -iquote ../lib/arch/x86/include -I../lib   groups.c ../lib/libzdtmtst.a ../lib/libzdtmtst.a -o groups
> groups.c:22:9: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
>         if (ng < 0) {
>             ~~ ^ ~

Declare ng as int.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 4be8daa1
...@@ -14,7 +14,8 @@ const char *test_author = "Pavel Emelianov <xemul@parallels.com>"; ...@@ -14,7 +14,8 @@ const char *test_author = "Pavel Emelianov <xemul@parallels.com>";
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
unsigned int ng, *grp, *grp2, i, max; int ng;
unsigned int *grp, *grp2, i, max;
test_init(argc, argv); test_init(argc, argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment