[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
some warnings in tests/
From: |
Ralf Wildenhues |
Subject: |
some warnings in tests/ |
Date: |
Mon, 13 Nov 2006 19:57:10 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Simon,
OK to apply? This makes tests/ 'gcc -Wall -Werror' proof.
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"
- some warnings in tests/,
Ralf Wildenhues <=