From 68ba636f9c1aadaf9986f0138792c136fb6bd604 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 15 Dec 2017 10:44:15 +0100 Subject: [PATCH] spawn-pipe: Silence a clang warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported by Tim Rühsen . * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings in this file. --- ChangeLog | 7 +++++++ lib/spawn-pipe.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8030b80652..233d71f485 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-12-15 Bruno Haible + + spawn-pipe: Silence a clang warning. + Reported by Tim Rühsen . + * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings + in this file. + 2017-12-12 Paul Eggert explicit_bzero: port to macOS + Clang 9.0.0 diff --git a/lib/spawn-pipe.c b/lib/spawn-pipe.c index cbcc4eee68..3170a4f4fd 100644 --- a/lib/spawn-pipe.c +++ b/lib/spawn-pipe.c @@ -16,6 +16,11 @@ along with this program. If not, see . */ +/* Tell clang not to warn about the 'child' variable, below. */ +#if defined __clang__ +# pragma clang diagnostic ignored "-Wconditional-uninitialized" +#endif + #include /* Specification. */ -- 2.39.5