From: Jim Meyering Date: Tue, 24 May 2011 19:28:46 +0000 (+0200) Subject: test-perror2.c: avoid warning about unused variable X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=734bedd126553e3619936f4fa84bf4854b7c40d6;p=pspp test-perror2.c: avoid warning about unused variable * tests/test-perror2.c (main): Remove declaration of unused "fp". --- diff --git a/ChangeLog b/ChangeLog index f606d69c5c..4ec646385e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-24 Jim Meyering + + test-perror2.c: avoid warning about unused variable + * tests/test-perror2.c (main): Remove declaration of unused "fp". + 2011-05-24 Eric Blake perror: avoid spurious test failure on HP-UX diff --git a/tests/test-perror2.c b/tests/test-perror2.c index d8e0ec5e07..3aab640a48 100644 --- a/tests/test-perror2.c +++ b/tests/test-perror2.c @@ -37,8 +37,6 @@ static FILE *myerr; 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)