[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some warnings in tests/
From: |
Simon Josefsson |
Subject: |
Re: some warnings in tests/ |
Date: |
Tue, 14 Nov 2006 15:21:55 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) |
Ralf Wildenhues <address@hidden> writes:
> Hello Simon,
>
> OK to apply? This makes tests/ 'gcc -Wall -Werror' proof.
Hi Ralf! Looks good, please install it.
/Simon
> Cheers,
> Ralf
>
> 2006-11-13 Ralf Wildenhues <address@hidden>
>
> * tests/test-gc.c (main): Remove unused variables.
> * tests/test-read-file.c: Include stdlib.h, for 'free'.
>
> Index: tests/test-gc.c
> ===================================================================
> RCS file: /cvsroot/gnulib/gnulib/tests/test-gc.c,v
> retrieving revision 1.2
> diff -u -r1.2 test-gc.c
> --- tests/test-gc.c 13 Oct 2005 08:06:07 -0000 1.2
> +++ tests/test-gc.c 13 Nov 2006 18:20:57 -0000
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (C) 2005 Free Software Foundation
> + * Copyright (C) 2005, 2006 Free Software Foundation
> * Written by Simon Josefsson
> *
> * This program is free software; you can redistribute it and/or modify
> @@ -29,7 +29,6 @@
> main (int argc, char *argv[])
> {
> Gc_rc rc;
> - char buf1[8], buf2[8];
>
> rc = gc_init ();
> if (rc != GC_OK)
> Index: tests/test-read-file.c
> ===================================================================
> RCS file: /cvsroot/gnulib/gnulib/tests/test-read-file.c,v
> retrieving revision 1.1
> diff -u -r1.1 test-read-file.c
> --- tests/test-read-file.c 16 Jun 2006 19:40:12 -0000 1.1
> +++ tests/test-read-file.c 13 Nov 2006 18:20:57 -0000
> @@ -24,6 +24,7 @@
> #include "read-file.h"
>
> #include <stdio.h>
> +#include <stdlib.h>
>
> #define FILE1 "/etc/resolv.conf"
> #define FILE2 "/dev/null"