nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 24.05-beta 48 lines 1.7 kB view raw
1#! /bin/sh /usr/share/dpatch/dpatch-run 2## 07_unused_variables.dpatch by Colin Watson <cjwatson@ubuntu.com> 3## 4## All lines beginning with `## DP:' are a description of the patch. 5## DP: GCC 4.6 warns about unused variables, and fileschanged builds with 6## DP: -Werror, so deal with unused variable warnings. 7 8@DPATCH@ 9diff -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 10--- fileschanged-0.6.5~/src/monitor.c 2006-04-19 20:42:29.000000000 +0100 11+++ fileschanged-0.6.5/src/monitor.c 2011-09-14 01:17:23.000000000 +0100 12@@ -84,6 +84,7 @@ 13 retval = FAMMonitorDirectory (c, node->filename, &node->request, 14 (void *) node); 15 //printf ("FAMMonitorDirectory returns %d (reqnum %d)\n", retval, node->request.reqnum); 16+ (void) retval; 17 } 18 else if (S_ISREG (node->statbuf.st_mode)) 19 { 20@@ -91,6 +92,7 @@ 21 retval = FAMMonitorFile (c, node->filename, &node->request, 22 (void *) node); 23 //printf ("FAMMonitorFile returns %d (reqnum %d)\n", retval, node->request.reqnum); 24+ (void) retval; 25 } 26 monitor_handle_events (c, list, 0, 30); 27 } 28 29diff -r -U3 fileschanged-0.6.9-orig/src/main.c fileschanged-0.6.9/src/main.c 30--- fileschanged-0.6.9-orig/src/main.c 2012-04-13 01:31:59.160601022 +0400 31+++ fileschanged-0.6.9/src/main.c 2012-04-13 01:32:47.549599643 +0400 32@@ -126,6 +126,7 @@ 33 { 34 retval = process_file (filelist, filelist_len, arguments.args[i]); 35 } 36+ (void) retval; 37 return 0; 38 } 39 40@@ -168,6 +169,7 @@ 41 42 if (fileptr != stdin) 43 fclose (fileptr); 44+ (void) retval; 45 return 0; 46 } 47 int 48