packages: elfutils/elfutils-strings_c.patch (NEW) - fix warnings (-Wall tur...

shadzik shadzik at pld-linux.org
Sun Jun 6 13:51:26 CEST 2010


Author: shadzik                      Date: Sun Jun  6 11:51:26 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix warnings (-Wall turns them to errors)

---- Files affected:
packages/elfutils:
   elfutils-strings_c.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/elfutils/elfutils-strings_c.patch
diff -u /dev/null packages/elfutils/elfutils-strings_c.patch:1.1
--- /dev/null	Sun Jun  6 13:51:26 2010
+++ packages/elfutils/elfutils-strings_c.patch	Sun Jun  6 13:51:21 2010
@@ -0,0 +1,22 @@
+--- src/strings.c.orig	2010-06-06 13:44:24.944220549 +0200
++++ src/strings.c	2010-06-06 13:48:09.937738243 +0200
+@@ -381,7 +381,8 @@
+ 		 assume the file data is encoded in UCS-2/UTF-16 or
+ 		 UCS-4/UTF-32 respectively we could covert the string.
+ 		 But there is no such guarantee.  */
+-	      fwrite_unlocked (start, 1, buf - start, stdout);
++	      int ret;
++	      ret = fwrite_unlocked (start, 1, buf - start, stdout);
+ 	      putc_unlocked ('\n', stdout);
+ 	    }
+ 
+@@ -441,7 +442,8 @@
+ 		  free (*unprinted);
+ 		  *unprinted = NULL;
+ 		}
+-	      fwrite_unlocked (start, 1, buf - start, stdout);
++	      int ret;
++	      ret = fwrite_unlocked (start, 1, buf - start, stdout);
+ 	      putc_unlocked ('\n', stdout);
+ 	    }
+ 
================================================================


More information about the pld-cvs-commit mailing list