From: Bruno Haible Date: Fri, 15 Dec 2017 09:44:15 +0000 (+0100) Subject: spawn-pipe: Silence a clang warning. X-Git-Tag: v1.0~5794 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=68ba636f9c1aadaf9986f0138792c136fb6bd604;p=gnulib.git spawn-pipe: Silence a clang warning. Reported by Tim Rühsen . * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings in this file. --- 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. */