slabtop: fix clang complier warnings
slabtop.c:273:29: warning: named variadic macros are a GNU extension [-pedantic,-Wvariadic-macros] slabtop.c:299:9: warning: unused variable 'end' [-Wunused-variable] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
a3544b00f8
commit
abd113313d
@ -270,7 +270,7 @@ static void parse_input(char c)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define print_line(fmt, args...) if (run_once) printf(fmt, ## args); else printw(fmt, ## args)
|
#define print_line(fmt, ...) if (run_once) printf(fmt, __VA_ARGS__); else printw(fmt, __VA_ARGS__)
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int o;
|
int o;
|
||||||
@ -296,7 +296,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while ((o = getopt_long(argc, argv, "d:s:ohV", longopts, NULL)) != -1) {
|
while ((o = getopt_long(argc, argv, "d:s:ohV", longopts, NULL)) != -1) {
|
||||||
switch (o) {
|
switch (o) {
|
||||||
char *end;
|
|
||||||
case 'd':
|
case 'd':
|
||||||
errno = 0;
|
errno = 0;
|
||||||
delay = strtol_or_err(optarg, _("illegal delay"));
|
delay = strtol_or_err(optarg, _("illegal delay"));
|
||||||
|
Loading…
Reference in New Issue
Block a user