summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormarino <marino>2012-12-15 08:18:49 +0000
committermarino <marino>2012-12-15 08:18:49 +0000
commit0d8304fef799fdb0df7f173b67807ecabad2feab (patch)
tree2557198c9faac042e8ea6bab8f2dbe60a8f85968 /net
parentc5c8a36a2719c161f33bcce4bfeeccf7506a5700 (diff)
downloadpkgsrc-0d8304fef799fdb0df7f173b67807ecabad2feab.tar.gz
net/wmget: Fix variable set but not used errors
With -Werror set, this package would not build with gcc4.6+
Diffstat (limited to 'net')
-rw-r--r--net/wmget/distinfo3
-rw-r--r--net/wmget/patches/patch-dockapp_da_run.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/net/wmget/distinfo b/net/wmget/distinfo
index b40be6623e2..0e914da869a 100644
--- a/net/wmget/distinfo
+++ b/net/wmget/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2007/08/05 15:48:09 joerg Exp $
+$NetBSD: distinfo,v 1.3 2012/12/15 08:18:49 marino Exp $
SHA1 (wmget-0.6.0-src.tar.gz) = 936fa30702c65216dc0371fcd3e5d2104bced1f8
RMD160 (wmget-0.6.0-src.tar.gz) = 5caefbb15c66e38c4c3677428a086f49e4a529a3
Size (wmget-0.6.0-src.tar.gz) = 41155 bytes
SHA1 (patch-aa) = cdcab9a51b4e688f49d78e2307d0752c33705f06
+SHA1 (patch-dockapp_da_run.c) = 53815436dfa015d8eb434693ff98cc002a73ffd2
diff --git a/net/wmget/patches/patch-dockapp_da_run.c b/net/wmget/patches/patch-dockapp_da_run.c
new file mode 100644
index 00000000000..269b47180ac
--- /dev/null
+++ b/net/wmget/patches/patch-dockapp_da_run.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-dockapp_da_run.c,v 1.1 2012/12/15 08:18:49 marino Exp $
+
+Fix "variable 'rv' set but not used" error on gcc+4.6
+
+--- dockapp/da_run.c.orig 2003-02-09 03:09:26.000000000 +0000
++++ dockapp/da_run.c
+@@ -157,9 +157,8 @@ static void da_reset_timer (void)
+ static long da_timer_msec_remaining (void)
+ {
+ struct timeval right_now;
+- int rv;
+
+- rv = gettimeofday (&right_now, 0);
++ gettimeofday (&right_now, 0);
+
+ return
+ (da_timer_next_timeout.tv_sec - right_now.tv_sec) * 1000L