tags 626752 patch
thanks

* Thus spake Matthias Klose (d...@debian.org):
> Package: lockfile-progs
> Version: 0.1.15
> Severity: important
> Tags: wheezy sid
> User: debian-...@lists.debian.org
> Usertags: ftbfs-gcc-4.6 ftbfs-werror

Patch attached.

Sebastian
>From 0d270ac338ae0de36dc42607fccb0f7d8e0dc37e Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <sebast...@breakpoint.cc>
Date: Sat, 16 Jul 2011 11:25:12 +0200
Subject: [PATCH] Remove unsued variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This removes a new warning raised by gcc 4.6.1:
|lockfile-progs.c:69:9: error: variable ‘rc’ set but not used [-Werror=unused-but-set-variable]

Signed-off-by: Sebastian Andrzej Siewior <sebast...@breakpoint.cc>
---
 lockfile-progs.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lockfile-progs.c b/lockfile-progs.c
index a06562f..4d98e7f 100644
--- a/lockfile-progs.c
+++ b/lockfile-progs.c
@@ -66,12 +66,11 @@ chk(const int test, const char *fmt, ...)
 {
   if(!test)
   {
-    int rc = 0;
     if(lockfile_verbosity > 0)
     {
       va_list args;
       va_start(args, fmt);
-      rc = vfprintf(stderr, fmt, args);
+      vfprintf(stderr, fmt, args);
       va_end(args);
     }
     exit(1);
-- 
1.7.5.4

Reply via email to