# HG changeset patch # User Bruno Haible # Date 1513331055 -3600 # Node ID c1c789fe74ad67a51be574efd9c1f88232c20711 # Parent 09de5d60dec41170a47f50b9d01bdf1036ff73d4 spawn-pipe: Silence a clang warning. Reported by Tim Rühsen . * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings in this file. diff -r 09de5d60dec4 -r c1c789fe74ad ChangeLog --- a/ChangeLog Tue Dec 12 16:41:21 2017 -0800 +++ b/ChangeLog Fri Dec 15 10:44:15 2017 +0100 @@ -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 -r 09de5d60dec4 -r c1c789fe74ad lib/spawn-pipe.c --- a/lib/spawn-pipe.c Tue Dec 12 16:41:21 2017 -0800 +++ b/lib/spawn-pipe.c Fri Dec 15 10:44:15 2017 +0100 @@ -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. */