From 41e92be956f2374fa2cc04afa6e21c845c53a9de Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 21 Sep 2022 10:04:22 +0200 Subject: [PATCH] FIXME: This is a hack to re-enable 'make check' Do not print warning if in batch mode. --- src/frontend/spiceif.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontend/spiceif.c b/src/frontend/spiceif.c index 4277c4917..85380a5b6 100644 --- a/src/frontend/spiceif.c +++ b/src/frontend/spiceif.c @@ -75,6 +75,7 @@ CDHW*/ #endif extern INPmodel *modtab; +extern bool ft_batchmode; static struct variable *parmtovar(IFvalue *pv, IFparm *opt); static IFparm *parmlookup(IFdevice *dev, GENinstance **inptr, char *param, @@ -332,8 +333,10 @@ if_run(CKTcircuit *ckt, char *what, wordlist *args, INPtables *tab) ft_curckt->ci_curOpt = ft_curckt->ci_defOpt; if (ft_curckt->ci_curTask->jobs == NULL) { /* nothing to 'run' */ - fprintf(stderr, "Warning: No job (tran, ac, op etc.) defined:\n"); - return (3); + if (!ft_batchmode) { + fprintf(stderr, "Warning: No job (tran, ac, op etc.) defined:\n"); + return (3); + } } }