]> Savannah Git Hosting - gnulib.git/commitdiff
spawn-pipe: Silence a clang warning.
authorBruno Haible <bruno@clisp.org>
Fri, 15 Dec 2017 09:44:15 +0000 (10:44 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 15 Dec 2017 09:44:15 +0000 (10:44 +0100)
Reported by Tim Rühsen <tim.ruehsen@gmx.de>.

* lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
in this file.

ChangeLog
lib/spawn-pipe.c

index 8030b806526d7edbbe0f07c4bc40f7d651f05458..233d71f485eb93ce723fca69cb7a68b5e7eb3c7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-12-15  Bruno Haible  <bruno@clisp.org>
+
+       spawn-pipe: Silence a clang warning.
+       Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
+       * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
+       in this file.
+
 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        explicit_bzero: port to macOS + Clang 9.0.0
index cbcc4eee6837ca34e40da4d660515c9bfb05d453..3170a4f4fd4751b65c91e4fe4a6e390b68176086 100644 (file)
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 
+/* Tell clang not to warn about the 'child' variable, below.  */
+#if defined __clang__
+# pragma clang diagnostic ignored "-Wconditional-uninitialized"
+#endif
+
 #include <config.h>
 
 /* Specification.  */