]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
ccode: Add missing newline after gnuc deprecations attribute
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 18 Oct 2016 18:00:07 +0000 (11:00 -0700)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 18 Oct 2016 19:56:03 +0000 (21:56 +0200)
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

index deb969ce2e2cdb9db9a97d5306461ee11ce80148..f4a28e384000b359ef34e2f25535a07ca68cf8c3 100644 (file)
@@ -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);
                }