Browse Source

cmdline barebones variant warning cleanup

pull/1/head
Sami Vaarala 11 years ago
parent
commit
db30481a5a
  1. 4
      examples/cmdline/duk_cmdline.c

4
examples/cmdline/duk_cmdline.c

@ -221,7 +221,6 @@ int handle_interactive(duk_context *ctx) {
const char *prompt = "duk> "; const char *prompt = "duk> ";
char *buffer = NULL; char *buffer = NULL;
int retval = 0; int retval = 0;
int got_eof = 0;
int rc; int rc;
duk_eval_string(ctx, "print('((o) Duktape [no readline]'); print(__duk__.build);"); duk_eval_string(ctx, "print('((o) Duktape [no readline]'); print(__duk__.build);");
@ -244,7 +243,6 @@ int handle_interactive(duk_context *ctx) {
for (;;) { for (;;) {
int c = fgetc(stdin); int c = fgetc(stdin);
if (c == EOF) { if (c == EOF) {
got_eof = 1;
break; break;
} else if (c == '\n') { } else if (c == '\n') {
break; break;
@ -380,6 +378,8 @@ int main(int argc, char *argv[]) {
#ifndef NO_RLIMIT #ifndef NO_RLIMIT
set_resource_limits(memlimit_high ? MEM_LIMIT_HIGH : MEM_LIMIT_NORMAL); set_resource_limits(memlimit_high ? MEM_LIMIT_HIGH : MEM_LIMIT_NORMAL);
#else
(void) memlimit_high; /* suppress warning */
#endif #endif
ctx = duk_create_heap_default(); ctx = duk_create_heap_default();

Loading…
Cancel
Save