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

Matthias Andree matthias.andree at gmx.de
Mon Jan 19 16:19:19 CET 2004


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.

-- 
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95




More information about the bogofilter-dev mailing list