main.c: In function ‘_narwhal_test_function_ml_mount_ok’:
/home/erik/workspace/monolinux/ml/tst/utils/narwhal.h:263:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
default: (left) == (right))
Replacing 1 with 1u obviously solves the problem, but I would prefer declaring call_count as int instead as it makes the code slightly easier to read and write.
This is not a bug, but a suggestion.
I usually pass
-Wextra
to gcc, which makesgive the compile error
Replacing
1
with1u
obviously solves the problem, but I would prefer declaringcall_count
asint
instead as it makes the code slightly easier to read and write.