changeset 39186:c1c789fe74ad

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.
author Bruno Haible <bruno@clisp.org>
date Fri, 15 Dec 2017 10:44:15 +0100
parents 09de5d60dec4
children fa1ed608b1cc
files ChangeLog lib/spawn-pipe.c
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <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
--- 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 <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.  */