diff options
| author | kyab <[email protected]> | 2014-02-23 20:43:43 +0900 |
|---|---|---|
| committer | kyab <[email protected]> | 2014-02-23 20:43:43 +0900 |
| commit | 1cf619d3b499b00385e7166e00840ef0114353ae (patch) | |
| tree | 6e39cc39e2b71f59056fc3ca5324e2b1702d00de | |
| parent | e202d4cd530bfc660688da6316e33100b551ed83 (diff) | |
| download | mruby-1cf619d3b499b00385e7166e00840ef0114353ae.tar.gz mruby-1cf619d3b499b00385e7166e00840ef0114353ae.zip | |
Fix unused function warning when readline enabled (mirb)
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index a9d6850a5..b204c8e2d 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -218,6 +218,7 @@ print_hint(void) printf("mirb - Embeddable Interactive Ruby Shell\n\n"); } +#ifndef ENABLE_READLINE /* Print the command line prompt of the REPL */ static void print_cmdline(int code_block_open) @@ -229,6 +230,7 @@ print_cmdline(int code_block_open) printf("> "); } } +#endif void mrb_codedump_all(mrb_state*, struct RProc*); |
