summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e0dd50)
raw | patch | inline | side by side (parent: 3e0dd50)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 17:43:15 +0000 (18:43 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 17:43:15 +0000 (18:43 +0100) |
CC src/virt_la-virt.lo
src/virt.c:417:37: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if ((tag_index < 0) || (tag_index >= STATIC_ARRAY_SIZE(tags))) {
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
src/virt.c:417:37: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if ((tag_index < 0) || (tag_index >= STATIC_ARRAY_SIZE(tags))) {
~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index 692088c46fcdcb0f449519a016a31c8699e503b2..e95a31b49d23883ba725f4bbf03d6e89254773a9 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
"minor_fault", "unused", "available",
"actual_balloon", "rss"};
- if ((tag_index < 0) || (tag_index >= STATIC_ARRAY_SIZE(tags))) {
+ if ((tag_index < 0) || (tag_index >= (int)STATIC_ARRAY_SIZE(tags))) {
ERROR("virt plugin: Array index out of bounds: tag_index = %d", tag_index);
return;
}