From: Philip Withnall Date: Tue, 18 Oct 2016 18:00:07 +0000 (-0700) Subject: ccode: Add missing newline after gnuc deprecations attribute X-Git-Tag: 0.35.1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e5aab85e58e7ab93711349baec3aa98b5bbb8b;p=thirdparty%2Fvala.git 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 --- diff --git a/ccode/valaccodeggnucsection.vala b/ccode/valaccodeggnucsection.vala index deb969ce2..f4a28e384 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); }