From 31f92d02d9bfde5465315f131af5b2f19719c551 Mon Sep 17 00:00:00 2001 From: shadzik Date: Sun, 6 Jun 2010 11:51:21 +0000 Subject: [PATCH] - fix warnings (-Wall turns them to errors) Changed files: elfutils-strings_c.patch -> 1.1 --- elfutils-strings_c.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 elfutils-strings_c.patch diff --git a/elfutils-strings_c.patch b/elfutils-strings_c.patch new file mode 100644 index 0000000..99e66c4 --- /dev/null +++ b/elfutils-strings_c.patch @@ -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); + } + -- 2.43.0