bc: placate a "defined but not used" warning
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jun 2020 11:43:11 +0000 (13:43 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Jun 2020 13:05:29 +0000 (15:05 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c

index c7246ea1a1610195e78de07d9e09b4e38535fcdd..4d987325e9a0c4b95cae6cea4d0ed97ac05be7fc 100644 (file)
@@ -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: