From db30481a5af7e93a0dc54e51fd2ed61cb0205ef9 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Tue, 31 Dec 2013 00:33:06 +0200 Subject: [PATCH] cmdline barebones variant warning cleanup --- examples/cmdline/duk_cmdline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cmdline/duk_cmdline.c b/examples/cmdline/duk_cmdline.c index 7dd17c9e..096bdbde 100644 --- a/examples/cmdline/duk_cmdline.c +++ b/examples/cmdline/duk_cmdline.c @@ -221,7 +221,6 @@ int handle_interactive(duk_context *ctx) { const char *prompt = "duk> "; char *buffer = NULL; int retval = 0; - int got_eof = 0; int rc; duk_eval_string(ctx, "print('((o) Duktape [no readline]'); print(__duk__.build);"); @@ -244,7 +243,6 @@ int handle_interactive(duk_context *ctx) { for (;;) { int c = fgetc(stdin); if (c == EOF) { - got_eof = 1; break; } else if (c == '\n') { break; @@ -380,6 +378,8 @@ int main(int argc, char *argv[]) { #ifndef NO_RLIMIT set_resource_limits(memlimit_high ? MEM_LIMIT_HIGH : MEM_LIMIT_NORMAL); +#else + (void) memlimit_high; /* suppress warning */ #endif ctx = duk_create_heap_default();