[git commit] bc: placate a "defined but not used" warning

Denys Vlasenko vda.linux at googlemail.com
Wed Jun 24 13:05:29 UTC 2020


commit: https://git.busybox.net/busybox/commit/?id=5663a17dabfcad885cc80f155ef84f7b843845cc
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/bc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index c7246ea1a..4d987325e 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -2522,7 +2522,9 @@ static void xc_read_line(BcVec *vec, FILE *fp)
 
 #if ENABLE_FEATURE_BC_INTERACTIVE
 	if (G_interrupt) { // ^C was pressed
+# if ENABLE_FEATURE_EDITING
  intr:
+# endif
 		if (fp != stdin) {
 			// ^C while running a script (bc SCRIPT): die.
 			// We do not return to interactive prompt:


More information about the busybox-cvs mailing list