[cvs] bogofilter/src/tests wantcore.c,1.2,1.3

David Relson relson at osagesoftware.com
Mon Jan 19 16:31:20 CET 2004


On Mon, 19 Jan 2004 16:19:19 +0100
Matthias Andree <matthias.andree at gmx.de> wrote:

> relson at users.sourceforge.net writes:
> 
> > Update of /cvsroot/bogofilter/bogofilter/src/tests
> > In directory sc8-pr-cvs1:/tmp/cvs-serv19157/tests
> >
> > Modified Files:
> > 	wantcore.c 
> > Log Message:
> > Eliminate compiler warning.
> >
> > Index: wantcore.c
> > ===================================================================
> > RCS file: /cvsroot/bogofilter/bogofilter/src/tests/wantcore.c,v
> > retrieving revision 1.2
> > retrieving revision 1.3
> > diff -u -d -r1.2 -r1.3
> > --- wantcore.c	15 Jan 2004 02:21:49 -0000	1.2
> > +++ wantcore.c	18 Jan 2004 05:21:53 -0000	1.3
> > @@ -40,4 +40,5 @@
> >      execv(argv[1], argv+1);
> >      fprintf(stderr, "execv: ");
> >      barf(argv[1]);
> > +    return 0;
> >  }
> 
> We'd better use __attribute__((noreturn)) on barf(), to tell the
> compiler what's going on. I'll commit when CVS is back up.

OK, though __attribute__ isn't supported on all platforms :-(





More information about the bogofilter-dev mailing list