]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc: Don't use 'stderr' as variable name
authorJasper Lievisse Adriaanse <jasper@openbsd.org>
Tue, 5 Sep 2017 11:07:25 +0000 (13:07 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 5 Sep 2017 15:43:29 +0000 (17:43 +0200)
It might clash with the definition in stdio.h, e.g. on OpenBSD.

https://bugzilla.gnome.org/show_bug.cgi?id=787305

valadoc/doclets/gtkdoc/doclet.vala

index 2d000f6ebcd96f9b17401d1a9e0650285f775910..d567d6fe85a48dc48b82b49f43696d6fd493e747 100644 (file)
@@ -283,21 +283,21 @@ public class Gtkdoc.Director : Valadoc.Doclet, Object {
                pc_libs += "--libs";
 
                try {
-                       string stderr;
+                       string stderr_buf;
                        int status;
 
                        string cflags;
-                       Process.spawn_sync (null, pc_cflags, null, SpawnFlags.SEARCH_PATH, null, out cflags, out stderr, out status);
+                       Process.spawn_sync (null, pc_cflags, null, SpawnFlags.SEARCH_PATH, null, out cflags, out stderr_buf, out status);
                        if (status != 0) {
-                               reporter.simple_error ("GtkDoc", "pkg-config cflags error: %s", stderr);
+                               reporter.simple_error ("GtkDoc", "pkg-config cflags error: %s", stderr_buf);
                                return false;
                        }
                        cflags = cflags.strip ();
 
                        string libs;
-                       Process.spawn_sync (null, pc_libs, null, SpawnFlags.SEARCH_PATH, null, out libs, out stderr, out status);
+                       Process.spawn_sync (null, pc_libs, null, SpawnFlags.SEARCH_PATH, null, out libs, out stderr_buf, out status);
                        if (status != 0) {
-                               reporter.simple_error ("GtkDoc", "pkg-config libs error: %s", stderr);
+                               reporter.simple_error ("GtkDoc", "pkg-config libs error: %s", stderr_buf);
                                return false;
                        }