sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit ec8218c93bb19777f212addf94544ac01c3012c2
parent 301f018935abc4a61f37e126085c2824ebc49257
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Thu, 11 Dec 2025 08:52:47 +0100

bc: Keep happy the compiler

Diffstat:
Mbc.y | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bc.y b/bc.y @@ -331,6 +331,7 @@ code(char *fmt, ...) err: eprintf("unable to code requested operation\n"); + return NULL; } static Macro * @@ -638,6 +639,7 @@ end: toolong: yyerror("too long number"); + return 0; } static int @@ -723,6 +725,7 @@ operand(int ch) return NE; default: yyerror("invalid operand"); + return 0; } } @@ -770,6 +773,8 @@ repeat: } return operand(ch); } + + return 0; } static void