[vala] ccode: Add missing newline after gnuc deprecations attribute
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] ccode: Add missing newline after gnuc deprecations attribute
- Date: Tue, 18 Oct 2016 19:56:25 +0000 (UTC)
commit 88e5aab85e58e7ab93711349baec3aa98b5bbb8b
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Oct 18 11:00:07 2016 -0700
ccode: Add missing newline after gnuc deprecations attribute
In generated C code, code wrapped by
G_GNUC_[BEGIN|END]_IGNORE_DEPRECATIONS was missing a newline after the
BEGIN attribute, which was causing compilation failures. Fix that by
adding the missing newline.
https://bugzilla.gnome.org/show_bug.cgi?id=773129
ccode/valaccodeggnucsection.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/ccode/valaccodeggnucsection.vala b/ccode/valaccodeggnucsection.vala
index deb969c..f4a28e3 100644
--- a/ccode/valaccodeggnucsection.vala
+++ b/ccode/valaccodeggnucsection.vala
@@ -38,6 +38,7 @@ public class Vala.CCodeGGnucSection : CCodeFragment {
public override void write (CCodeWriter writer) {
writer.write_string ("G_GNUC_BEGIN_");
writer.write_string (section_type.to_string ());
+ writer.write_newline ();
foreach (CCodeNode node in get_children ()) {
node.write_combined (writer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]