[hackers] [sbase] bc: Keep happy the compiler || Roberto E. Vargas Caballero
commit ec8218c93bb19777f212addf94544ac01c3012c2
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
AuthorDate: Thu Dec 11 08:52:47 2025 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
CommitDate: Thu Dec 11 08:57:02 2025 +0100
bc: Keep happy the compiler
diff --git a/bc.y b/bc.y
index 47e9d56..b047f8f 100644
--- a/bc.y
+++ b/bc.y
_AT_@ -331,6 +331,7 @@ code(char *fmt, ...)
err:
eprintf("unable to code requested operation\n");
+ return NULL;
}
static Macro *
_AT_@ -638,6 +639,7 @@ end:
toolong:
yyerror("too long number");
+ return 0;
}
static int
_AT_@ -723,6 +725,7 @@ operand(int ch)
return NE;
default:
yyerror("invalid operand");
+ return 0;
}
}
_AT_@ -770,6 +773,8 @@ repeat:
}
return operand(ch);
}
+
+ return 0;
}
static void
Received on Thu Dec 11 2025 - 08:58:28 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 11 2025 - 09:00:35 CET