|
|
10a327 |
From 690d4bd9f29a805999a3ce4651dac9585ccc9917 Mon Sep 17 00:00:00 2001
|
|
|
10a327 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
10a327 |
Date: Wed, 11 May 2011 16:46:57 +0200
|
|
|
10a327 |
Subject: [PATCH 1/2] findutils-4.5.7-warnings.patch
|
|
|
10a327 |
|
|
|
10a327 |
---
|
|
|
10a327 |
xargs/xargs.c | 3 ++-
|
|
|
10a327 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
10a327 |
|
|
|
10a327 |
diff --git a/xargs/xargs.c b/xargs/xargs.c
|
|
|
10a327 |
index 5e373f2..c0a8676 100644
|
|
|
10a327 |
--- a/xargs/xargs.c
|
|
|
10a327 |
+++ b/xargs/xargs.c
|
|
|
10a327 |
@@ -1289,7 +1289,8 @@ xargs_do_exec (struct buildcmd_control *ctl, void *usercontext, int argc, char *
|
|
|
10a327 |
* utility if we run it, for POSIX compliance on the
|
|
|
10a327 |
* handling of exit values.
|
|
|
10a327 |
*/
|
|
|
10a327 |
- write (fd[1], &errno, sizeof (int));
|
|
|
10a327 |
+ int sink = write (fd[1], &errno, sizeof (int));
|
|
|
10a327 |
+ (void) sink;
|
|
|
10a327 |
}
|
|
|
10a327 |
|
|
|
10a327 |
close (fd[1]);
|
|
|
10a327 |
--
|
|
|
10a327 |
1.7.1
|
|
|
10a327 |
|
|
|
10a327 |
|
|
|
10a327 |
From c5654b9ca5f50daa1ca406ebd7b4546f24d00db6 Mon Sep 17 00:00:00 2001
|
|
|
10a327 |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
10a327 |
Date: Mon, 23 Sep 2013 15:04:03 +0200
|
|
|
10a327 |
Subject: [PATCH 2/2] parser: silence a [-Wmaybe-uninitialized] GCC warning
|
|
|
10a327 |
|
|
|
10a327 |
... caused by a missing model of error()
|
|
|
10a327 |
---
|
|
|
10a327 |
find/parser.c | 2 +-
|
|
|
10a327 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
10a327 |
|
|
|
10a327 |
diff --git a/find/parser.c b/find/parser.c
|
|
|
10a327 |
index 89d8bcf..8c399d7 100644
|
|
|
10a327 |
--- a/find/parser.c
|
|
|
10a327 |
+++ b/find/parser.c
|
|
|
10a327 |
@@ -2723,7 +2723,7 @@ insert_type (char **argv, int *arg_ptr,
|
|
|
10a327 |
const struct parser_table *entry,
|
|
|
10a327 |
PRED_FUNC which_pred)
|
|
|
10a327 |
{
|
|
|
10a327 |
- mode_t type_cell;
|
|
|
10a327 |
+ mode_t type_cell /* to silence GCC warning */ = 0;
|
|
|
10a327 |
struct predicate *our_pred;
|
|
|
10a327 |
float rate = 0.5;
|
|
|
10a327 |
const char *typeletter;
|
|
|
10a327 |
--
|
|
|
10a327 |
1.9.3
|
|
|
10a327 |
|