changeset 14814:23a793f9d5e4

test-perror2.c: avoid warning about unused variable * tests/test-perror2.c (main): Remove declaration of unused "fp".
author Jim Meyering <meyering@redhat.com>
date Tue, 24 May 2011 21:28:46 +0200
parents d9fdb6400ff8
children 820329b2a895
files ChangeLog tests/test-perror2.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-24  Jim Meyering  <meyering@redhat.com>
+
+	test-perror2.c: avoid warning about unused variable
+	* tests/test-perror2.c (main): Remove declaration of unused "fp".
+
 2011-05-24  Eric Blake  <eblake@redhat.com>
 
 	perror: avoid spurious test failure on HP-UX
--- a/tests/test-perror2.c
+++ b/tests/test-perror2.c
@@ -37,8 +37,6 @@
 int
 main (void)
 {
-  FILE *fp;
-
   /* We change fd 2 later, so save it in fd 10.  */
   if (dup2 (STDERR_FILENO, BACKUP_STDERR_FILENO) != BACKUP_STDERR_FILENO
       || (myerr = fdopen (BACKUP_STDERR_FILENO, "w")) == NULL)