From 6f729ff46b2f4531db68f0af85e7e9fe0f6d1969 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 3 Jan 2019 11:41:49 -0800 Subject: ao-tools: Fix warnings in ao-tools None of these appear likely to have caused actual problems. Signed-off-by: Keith Packard --- ao-tools/ao-dbg/ao-dbg-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ao-tools/ao-dbg/ao-dbg-main.c') diff --git a/ao-tools/ao-dbg/ao-dbg-main.c b/ao-tools/ao-dbg/ao-dbg-main.c index 8c879035..772701a9 100644 --- a/ao-tools/ao-dbg/ao-dbg-main.c +++ b/ao-tools/ao-dbg/ao-dbg-main.c @@ -50,7 +50,8 @@ usage(void) exit(1); } -void s51_sigint() +static void +s51_sigint(int signum) { s51_interrupted = 1; } @@ -64,7 +65,7 @@ static const struct option options[] = { int main(int argc, char **argv) { - int flags, opt; + int opt; char *endptr; while ((opt = getopt_long(argc, argv, "PVvHhmt:X:c:r:Z:s:S:p:T:", options, NULL)) != -1) { @@ -242,7 +243,6 @@ s51_check_input(void) { struct pollfd input; int r; - int c; input.fd = fileno(s51_input); input.events = POLLIN; -- cgit v1.2.3