diff options
author | Jasper Lievisse Adriaanse <jasper@openbsd.org> | 2017-09-05 13:07:25 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-09-05 17:43:29 +0200 |
commit | 09bbbfb62654f4c94b587656c3f3bc278effdd42 (patch) | |
tree | 7caf3e954a780bea68e17acdc7ebe7ec85396eba | |
parent | d433c59ac2707c669cf97215e1f9001fdcb894c1 (diff) | |
download | vala-09bbbfb62654f4c94b587656c3f3bc278effdd42.tar.gz |
valadoc: Don't use 'stderr' as variable name
It might clash with the definition in stdio.h, e.g. on OpenBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=787305
-rw-r--r-- | valadoc/doclets/gtkdoc/doclet.vala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/valadoc/doclets/gtkdoc/doclet.vala b/valadoc/doclets/gtkdoc/doclet.vala index 2d000f6eb..d567d6fe8 100644 --- a/valadoc/doclets/gtkdoc/doclet.vala +++ b/valadoc/doclets/gtkdoc/doclet.vala @@ -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; } |