about summary refs log tree commit diff
path: root/pkgs/tools/misc/fileschanged/unused-variables.debian.patch
blob: 73d307f9413d3db5a7f0b07e7eb0d1a6a44afcf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /bin/sh /usr/share/dpatch/dpatch-run
## 07_unused_variables.dpatch by Colin Watson <cjwatson@ubuntu.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: GCC 4.6 warns about unused variables, and fileschanged builds with
## DP: -Werror, so deal with unused variable warnings.

@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' fileschanged-0.6.5~/src/monitor.c fileschanged-0.6.5/src/monitor.c
--- fileschanged-0.6.5~/src/monitor.c	2006-04-19 20:42:29.000000000 +0100
+++ fileschanged-0.6.5/src/monitor.c	2011-09-14 01:17:23.000000000 +0100
@@ -84,6 +84,7 @@
 	  retval = FAMMonitorDirectory (c, node->filename, &node->request,
 					(void *) node);
 	  //printf ("FAMMonitorDirectory returns %d (reqnum %d)\n", retval, node->request.reqnum);
+	  (void) retval;
 	}
       else if (S_ISREG (node->statbuf.st_mode))
 	{
@@ -91,6 +92,7 @@
 	  retval = FAMMonitorFile (c, node->filename, &node->request,
 				   (void *) node);
 	  //printf ("FAMMonitorFile returns %d (reqnum %d)\n", retval, node->request.reqnum);
+	  (void) retval;
 	}
       monitor_handle_events (c, list, 0, 30);
     }

diff -r -U3 fileschanged-0.6.9-orig/src/main.c fileschanged-0.6.9/src/main.c
--- fileschanged-0.6.9-orig/src/main.c  2012-04-13 01:31:59.160601022 +0400
+++ fileschanged-0.6.9/src/main.c       2012-04-13 01:32:47.549599643 +0400
@@ -126,6 +126,7 @@
     {
       retval = process_file (filelist, filelist_len, arguments.args[i]);
     }
+  (void) retval;
   return 0;
 }
 
@@ -168,6 +169,7 @@
 
   if (fileptr != stdin)
     fclose (fileptr);
+  (void) retval;
   return 0;
 }
 int