From d06eb6452e2346f2ad2f7e04af8e29dc539e189d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Sat, 14 Nov 2009 14:54:11 +0100 Subject: [PATCH] Ticket #1826: fixing build w/o internal edit --- src/cmd.c | 2 ++ src/user.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/cmd.c b/src/cmd.c index 0dda06b01..dcfa5ee8e 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -304,6 +304,8 @@ do_edit_at_line (const char *what, int start_line) if (use_internal_edit) edit_file (what, start_line); else +#else + (void) start_line; #endif /* USE_INTERNAL_EDIT */ { if (editor == NULL) { diff --git a/src/user.c b/src/user.c index 795035852..10e1dbc54 100644 --- a/src/user.c +++ b/src/user.c @@ -183,6 +183,10 @@ expand_format (WEdit *edit_widget, char c, int lc_quote) char *result; char c_lc; +#ifndef USE_INTERNAL_EDIT + (void) edit_widget; +#endif + if (c == '%') return g_strdup ("%");