X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=example.c;fp=example.c;h=ea3a9937e1acc9418009ff3323497bc5eaecc0ca;hb=b01b57f3c5caf03f405e386fae809948a5a7f5c6;hp=971ac31def48e6ba975537360217f32cf795626b;hpb=d1a245f4a75747a1c4a1c08385817cb637e1c7af;p=linenoise.git diff --git a/example.c b/example.c index 971ac31..ea3a993 100644 --- a/example.c +++ b/example.c @@ -5,6 +5,7 @@ #ifndef NO_COMPLETION void completion(const char *buf, linenoiseCompletions *lc, void *userdata) { + (void)userdata; if (buf[0] == 'h') { linenoiseAddCompletion(lc,"hello"); linenoiseAddCompletion(lc,"hello there"); @@ -12,6 +13,7 @@ void completion(const char *buf, linenoiseCompletions *lc, void *userdata) { } char *hints(const char *buf, int *color, int *bold, void *userdata) { + (void)userdata; if (!strcasecmp(buf,"hello")) { *color = 35; *bold = 0;