diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-10-18 11:00:07 -0700 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-18 21:56:03 +0200 |
commit | 88e5aab85e58e7ab93711349baec3aa98b5bbb8b (patch) | |
tree | 13c15b0628a9bfd72ef492a095a9979ac3ceb9f9 /ccode | |
parent | ad87c4eb227c438a3bcadda9ee9b87aacb77adae (diff) | |
download | vala-88e5aab85e58e7ab93711349baec3aa98b5bbb8b.tar.gz |
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
Diffstat (limited to 'ccode')
-rw-r--r-- | ccode/valaccodeggnucsection.vala | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |