]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Initialize "result" variable on declaration for abstract methods only
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)
207 files changed:
codegen/valaccodemethodmodule.vala
tests/annotations/deprecated.c-expected
tests/arrays/cast-struct-boxed-element-access.c-expected
tests/arrays/empty-length-0.c-expected
tests/asynchronous/bug654337.c-expected
tests/asynchronous/bug777242.c-expected
tests/asynchronous/generator.c-expected
tests/basic-types/array-uint8-uchar-compat.c-expected
tests/basic-types/arrays-generics.c-expected
tests/basic-types/arrays.c-expected
tests/basic-types/bug571486.c-expected
tests/basic-types/bug650993.c-expected
tests/basic-types/bug686336.c-expected
tests/basic-types/bug731017.c-expected
tests/basic-types/bug761736.c-expected
tests/basic-types/floats.c-expected
tests/basic-types/garray.c-expected
tests/basic-types/glists.c-expected
tests/basic-types/glists_remove.c-expected
tests/basic-types/gptrarray.c-expected
tests/basic-types/integers.c-expected
tests/basic-types/pointers.c-expected
tests/basic-types/strings.c-expected
tests/bindings/gio/memoryoutputstream.c-expected
tests/chainup/class-compact-base.c-expected
tests/chainup/no-chainup.c-expected
tests/chainup/struct-no-gtype-base.c-expected
tests/chainup/struct-simple-no-gtype-base.c-expected
tests/control-flow/assigned-local-variable.c-expected
tests/control-flow/break.c-expected
tests/control-flow/bug628336.c-expected
tests/control-flow/bug639482.c-expected
tests/control-flow/bug691514.c-expected
tests/control-flow/bug736774-1.c-expected
tests/control-flow/bug736774-2.c-expected
tests/control-flow/bug761267-1.c-expected
tests/control-flow/bug761267-2.c-expected
tests/control-flow/coalesce-as-argument.c-expected
tests/control-flow/coalesce-execution-order.c-expected
tests/control-flow/coalesce-reference-transfer.c-expected
tests/control-flow/conditional-as-argument.c-expected
tests/control-flow/expressions-conditional.c-expected
tests/control-flow/sideeffects.c-expected
tests/control-flow/switch-enum.c-expected
tests/control-flow/switch-string.c-expected
tests/control-flow/switch.c-expected
tests/dbus/arrays_server.c-expected
tests/dbus/async-bus_server.c-expected
tests/dbus/async-connection_server.c-expected
tests/dbus/async-no-reply_client.c-expected
tests/dbus/basic-types_server.c-expected
tests/dbus/bug602003_server.c-expected
tests/dbus/bug735437_server.c-expected
tests/dbus/bug782719_server.c-expected
tests/dbus/bug783002_server.c-expected
tests/dbus/connection_server.c-expected
tests/dbus/dicts_server.c-expected
tests/dbus/dynamic-method_server.c-expected
tests/dbus/filedescriptor_server.c-expected
tests/dbus/generics_client.c-expected
tests/dbus/generics_server.c-expected
tests/dbus/no-reply_client.c-expected
tests/dbus/no-reply_server.c-expected
tests/dbus/rawvariants_server.c-expected
tests/delegates/bug638415.c-expected
tests/delegates/bug639751.c-expected
tests/delegates/bug659778.c-expected
tests/delegates/bug761360.c-expected
tests/delegates/bug792077.c-expected
tests/delegates/delegates.c-expected
tests/delegates/error-pos.c-expected
tests/delegates/gclosure-conversion.c-expected
tests/delegates/implicit-local-variable.c-expected
tests/delegates/lambda-mixed-instance-static.c-expected
tests/delegates/member-target-destroy.c-expected
tests/delegates/return-array-null-terminated.c-expected
tests/enums/bug614424.c-expected
tests/enums/bug666035.c-expected
tests/enums/enums.c-expected
tests/errors/bug579101.c-expected
tests/errors/bug627090.c-expected
tests/errors/bug762377.c-expected
tests/errors/bug778224.c-expected
tests/errors/errordomain-static-method.c-expected
tests/errors/errors.c-expected
tests/generics/bug640330.c-expected
tests/generics/bug694765-1.c-expected
tests/generics/inference-argument-may-fail.c-expected
tests/generics/inference-static-function.c-expected
tests/generics/integer-type-cast-return.c-expected
tests/generics/value-pointer-type-access.c-expected
tests/genie/class-signal.c-expected
tests/genie/function-returns-closure.c-expected
tests/genie/function-with-return-value.c-expected
tests/genie/init-int.c-expected
tests/genie/interface.c-expected
tests/genie/literal-template-string.c-expected
tests/methods/argument-array-initilizer.c-expected
tests/methods/array-length-type.c-expected
tests/methods/bug596726.c-expected
tests/methods/bug613483.c-expected
tests/methods/bug622570.c-expected
tests/methods/bug626783.c-expected
tests/methods/bug639054.c-expected
tests/methods/bug642350.c-expected
tests/methods/bug642885.c-expected
tests/methods/bug642899.c-expected
tests/methods/bug646345.c-expected
tests/methods/bug648320.c-expected
tests/methods/bug649562.c-expected
tests/methods/bug652098.c-expected
tests/methods/bug653391.c-expected
tests/methods/bug653908.c-expected
tests/methods/bug663210.c-expected
tests/methods/bug699956.c-expected
tests/methods/bug723009.c-expected
tests/methods/bug723195.c-expected
tests/methods/bug726347.c-expected
tests/methods/bug737222.c-expected
tests/methods/bug771964.c-expected
tests/methods/bug774060.c-expected
tests/methods/bug784691.c-expected
tests/methods/bug791283.c-expected
tests/methods/closures.c-expected
tests/methods/contains.c-expected
tests/methods/delegate-target.c-expected
tests/methods/generics.c-expected
tests/methods/iterator.c-expected
tests/methods/lambda.c-expected
tests/methods/local-functions.c-expected
tests/methods/nowrapper-interface.c-expected
tests/methods/parameter-ref-delegate.c-expected
tests/methods/postconditions-temp-variables.c-expected
tests/methods/postconditions.c-expected
tests/methods/preconditions-temp-variables.c-expected
tests/methods/prepostconditions-captured.c-expected
tests/methods/prepostconditions-contains.c-expected
tests/methods/prepostconditions.c-expected
tests/methods/print-attribute.c-expected
tests/methods/profile.c-expected
tests/methods/return-unowned-delegate.c-expected
tests/methods/same-name.c-expected
tests/methods/varargs-delegate-without-target.c-expected
tests/methods/varargs-delegate.c-expected
tests/methods/varargs-out.c-expected
tests/namespace/unique.c-expected
tests/objects/bug597155.c-expected
tests/objects/bug634782.c-expected
tests/objects/bug641828.c-expected
tests/objects/bug646362.c-expected
tests/objects/bug663134.c-expected
tests/objects/bug681356.c-expected
tests/objects/bug695671.c-expected
tests/objects/bug741465.c-expected
tests/objects/bug758816.c-expected
tests/objects/class-new-no-override.c-expected
tests/objects/classes-implicit-implementation.c-expected
tests/objects/classes-interfaces-virtuals.c-expected
tests/objects/classes-interfaces.c-expected
tests/objects/compact-class-custom-ref.c-expected
tests/objects/compact-class-destructor.c-expected
tests/objects/gsource.c-expected
tests/objects/interface-generics.c-expected
tests/objects/interface-property-base-access.c-expected
tests/objects/interface-virtual-override.c-expected
tests/objects/interfaces.c-expected
tests/objects/member-initializer-chained.c-expected
tests/objects/methods.c-expected
tests/objects/plugin-module-init.c-expected
tests/objects/properties.c-expected
tests/objects/property-delegate.c-expected
tests/objects/property-real-struct-assignment.c-expected
tests/objects/regex.c-expected
tests/objects/signals-delegate.c-expected
tests/objects/signals-fundamental-return.c-expected
tests/objects/signals-generic-return.c-expected
tests/objects/signals-gobject-return.c-expected
tests/objects/signals-prototype-access.c-expected
tests/objects/signals-struct-return.c-expected
tests/objects/signals.c-expected
tests/objects/test-025.c-expected
tests/objects/test-026.c-expected
tests/objects/test-029.c-expected
tests/objects/type-narrowing-fallback.c-expected
tests/objects/with-expression.c-expected
tests/objects/with-nested-in-lambda.c-expected
tests/objects/with-nested-method.c-expected
tests/objects/with-nested-signal.c-expected
tests/objects/with-nested-unambigous-signal.c-expected
tests/objects/with-nested.c-expected
tests/ordering/delegate-class.c-expected
tests/parser/template.c-expected
tests/parser/with-embedded.c-expected
tests/posix/arrays.c-expected
tests/posix/empty-length-0.c-expected
tests/posix/string-concat.c-expected
tests/resolver/peek-inner-types.c-expected
tests/semantic/class-opaque.c-expected
tests/semantic/floating-reference-base-method.c-expected
tests/semantic/floating-reference-error.c-expected
tests/semantic/floating-reference.c-expected
tests/semantic/with-string.c-expected
tests/structs/bug657378.c-expected
tests/structs/cast-struct-boxed.c-expected
tests/structs/gvalue-implicit-comparison.c-expected
tests/structs/gvalue.c-expected
tests/structs/simple-type-default-value.c-expected

index 9da195128285eaaf76cfa857def10983f4f583d8..ff6d679ac5195895871fda51201dae5ccaf81039 100644 (file)
@@ -814,8 +814,13 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
                }
 
                if (current_method_return && !(m.return_type is VoidType) && !m.return_type.is_real_non_null_struct_type () && !m.coroutine) {
-                       var vardecl = new CCodeVariableDeclarator ("result", default_value_for_type (m.return_type, true));
-                       vardecl.init0 = true;
+                       CCodeVariableDeclarator vardecl;
+                       if (m.is_abstract) {
+                               vardecl = new CCodeVariableDeclarator ("result", default_value_for_type (m.return_type, true));
+                               vardecl.init0 = true;
+                       } else {
+                               vardecl = new CCodeVariableDeclarator ("result");
+                       }
                        ccode.add_declaration (get_ccode_name (m.return_type), vardecl);
                }
 
@@ -1120,8 +1125,13 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
 
                if (m.return_type.is_non_null_simple_type () && default_value_for_type (m.return_type, false) == null) {
                        // the type check will use the result variable
-                       var vardecl = new CCodeVariableDeclarator ("result", default_value_for_type (m.return_type, true));
-                       vardecl.init0 = true;
+                       CCodeVariableDeclarator vardecl;
+                       if (m.is_abstract) {
+                               vardecl = new CCodeVariableDeclarator ("result", default_value_for_type (m.return_type, true));
+                               vardecl.init0 = true;
+                       } else {
+                               vardecl = new CCodeVariableDeclarator ("result");
+                       }
                        ccode.add_declaration (get_ccode_name (m.return_type), vardecl);
                }
 
index 729cd82e44467dcbfecc5ef16f31fc76a2d24af9..ceb54da63724f34e1a553429b00b9f30931832ea 100644 (file)
@@ -222,7 +222,7 @@ fooclass_get_instance_private (FooClass* self)
 gint
 fooclass_foo (FooClass* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOOCLASS (self), 0);
        result = 42;
        return result;
@@ -231,7 +231,7 @@ fooclass_foo (FooClass* self)
 static gint
 fooclass_real_foov (FooClass* self)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
@@ -378,7 +378,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
 gint
 afoo_foo (AFoo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_AFOO (self), 0);
        result = 42;
        return result;
@@ -450,7 +450,7 @@ afoo_get_type (void)
 gint
 ifoo_foo (IFoo* self)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
index c9ab958f114999a6ec5571adf1f93ead9cdb0040..a7bff29a40e2df7d0e7e26cfa54cec10afc0b9f0 100644 (file)
@@ -122,7 +122,7 @@ foo_array_owned (gint* result_length1)
        Foo** _tmp6_;
        Foo** _tmp7_;
        gint _tmp7__length1;
-       Foo** result = NULL;
+       Foo** result;
        memset (&_tmp0_, 0, sizeof (Foo));
        _tmp0_.i = 23;
        _tmp1_ = _foo_dup0 (&_tmp0_);
@@ -159,7 +159,7 @@ foo_array_unowned (gint* result_length1)
        gint _tmp7__length1;
        Foo** _tmp8_;
        gint _tmp8__length1;
-       Foo** result = NULL;
+       Foo** result;
        memset (&_tmp0_, 0, sizeof (Foo));
        _tmp0_.i = 23;
        _tmp1_ = _foo_dup0 (&_tmp0_);
@@ -431,7 +431,7 @@ bar_array_owned (gint* result_length1)
        gint _tmp13__length1;
        Bar** _tmp14_;
        gint _tmp14__length1;
-       Bar** result = NULL;
+       Bar** result;
        _tmp0_ = g_strdup ("foo");
        memset (&_tmp1_, 0, sizeof (Bar));
        _g_free0 (_tmp1_.s);
@@ -488,7 +488,7 @@ bar_array_unowned (gint* result_length1)
        gint _tmp13__length1;
        Bar** _tmp14_;
        gint _tmp14__length1;
-       Bar** result = NULL;
+       Bar** result;
        _tmp0_ = g_strdup ("foo");
        memset (&_tmp1_, 0, sizeof (Bar));
        _g_free0 (_tmp1_.s);
index e4337efa0e6b314bcb8a8ebe33d92fa61c85402d..87791630b6716a5718b729415198841a0ee95ec7 100644 (file)
@@ -152,7 +152,7 @@ get_foo (gint* result_length1)
        gint _tmp1__length1;
        gchar** _tmp2_;
        gint _tmp2__length1;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = foo;
        _tmp0__length1 = foo_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : _tmp0_;
@@ -185,7 +185,7 @@ get_bar (gint* result_length1)
        gint _tmp1__length1;
        gint* _tmp2_;
        gint _tmp2__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = bar;
        _tmp0__length1 = bar_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup2 (_tmp0_, _tmp0__length1) : _tmp0_;
@@ -228,7 +228,7 @@ get_manam (gint* result_length1)
        gint _tmp1__length1;
        Manam* _tmp2_;
        gint _tmp2__length1;
-       Manam* result = NULL;
+       Manam* result;
        _tmp0_ = manam;
        _tmp0__length1 = manam_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : _tmp0_;
index 925cba654b9849fca7cfe9aec9fde960a28e0bd4..3237071f269723d94ebbceca9d91e869ab1ce851 100644 (file)
@@ -115,7 +115,7 @@ __lambda4_ (Block1Data* _data1_)
        GType t_type;
        GBoxedCopyFunc t_dup_func;
        GDestroyNotify t_destroy_func;
-       gboolean result = FALSE;
+       gboolean result;
        t_type = _data1_->t_type;
        t_dup_func = _data1_->t_dup_func;
        t_destroy_func = _data1_->t_destroy_func;
index 8579446a85a2b6be1be7ab1de426496e549d6057..1bfa9d03181b26ee2932b175329a603b27ada736 100644 (file)
@@ -130,7 +130,7 @@ block1_data_unref (void * _userdata_)
 static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
-       gboolean result = FALSE;
+       gboolean result;
        run (NULL, NULL);
        g_main_loop_quit (_data1_->loop);
        result = FALSE;
index 6ec0dbc79500758a408ad901df21ed11c533e5e2..910916b6d3fc6bfad92923c0ddad5067a56d4c0b 100644 (file)
@@ -392,7 +392,7 @@ generator_feed_co (GeneratorFeedData* _data_)
 gboolean
 generator_next (Generator* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (IS_GENERATOR (self), FALSE);
        result = !self->priv->consumed;
        return result;
@@ -406,7 +406,7 @@ generator_get (Generator* self)
        gpointer _tmp1_;
        GSourceFunc _tmp2_;
        gpointer _tmp2__target;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (IS_GENERATOR (self), NULL);
        _tmp0_ = self->priv->value;
        _tmp1_ = ((_tmp0_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp0_) : ((gpointer) _tmp0_);
@@ -422,7 +422,7 @@ Generator*
 generator_iterator (Generator* self)
 {
        Generator* _tmp0_;
-       Generator* result = NULL;
+       Generator* result;
        g_return_val_if_fail (IS_GENERATOR (self), NULL);
        _tmp0_ = _generator_ref0 (self);
        result = _tmp0_;
index 1321a5c30d8488f97ed234ec7ab7f251e8f84a74..17cf9aed704e5fb6be710a5b8c58715537a8508f 100644 (file)
@@ -36,7 +36,7 @@ get_buffer (void)
 {
        guchar* _tmp0_;
        gint _tmp0__length1;
-       guchar* result = NULL;
+       guchar* result;
        _tmp0_ = data;
        _tmp0__length1 = -1;
        result = _tmp0_;
@@ -56,7 +56,7 @@ get_buffer2 (void)
 {
        guint8* _tmp0_;
        gint _tmp0__length1;
-       guint8* result = NULL;
+       guint8* result;
        _tmp0_ = data2;
        _tmp0__length1 = -1;
        result = _tmp0_;
index 577faa09618539511fe1a3fce7d50e454470f8b5..348c30a16d2a61c4e08b7ebf2fa9d535c26a9fa4 100644 (file)
@@ -122,7 +122,7 @@ static Baz*
 baz_get_object (Baz* self)
 {
        Baz* _tmp0_;
-       Baz* result = NULL;
+       Baz* result;
        g_return_val_if_fail (IS_BAZ (self), NULL);
        _tmp0_ = baz_new ();
        result = _tmp0_;
@@ -175,7 +175,7 @@ baz_create_array (Baz* self,
        gint _tmp6__length1;
        Baz** _tmp7_;
        gint _tmp7__length1;
-       Baz** result = NULL;
+       Baz** result;
        g_return_val_if_fail (IS_BAZ (self), NULL);
        _tmp1_ = baz_get_array (self, TYPE_BAZ, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, &_tmp0_);
        a = _tmp1_;
@@ -250,7 +250,7 @@ baz_create_array2 (Baz* self,
        gint _tmp6__length1;
        gpointer* _tmp7_;
        gint _tmp7__length1;
-       gpointer* result = NULL;
+       gpointer* result;
        g_return_val_if_fail (IS_BAZ (self), NULL);
        _tmp1_ = baz_get_array2 (self, v_type, (GBoxedCopyFunc) v_dup_func, (GDestroyNotify) v_destroy_func, &_tmp0_);
        a = _tmp1_;
@@ -304,7 +304,7 @@ baz_get_array (Baz* self,
        Baz* _tmp1_;
        gpointer* _tmp2_;
        gint _tmp2__length1;
-       gpointer* result = NULL;
+       gpointer* result;
        g_return_val_if_fail (IS_BAZ (self), NULL);
        _tmp0_ = g_new0 (gpointer, 0);
        a = _tmp0_;
@@ -364,7 +364,7 @@ baz_get_array2 (Baz* self,
        Baz* _tmp2_;
        gpointer* _tmp3_;
        gint _tmp3__length1;
-       gpointer* result = NULL;
+       gpointer* result;
        g_return_val_if_fail (IS_BAZ (self), NULL);
        _tmp0_ = g_new0 (gpointer, 0);
        a = _tmp0_;
index ec9664488bf3ca9b64da998b845a5a5abc715e11..36de500e9ed95f1458bde5c9d023c68cfd471d0c 100644 (file)
@@ -709,7 +709,7 @@ pass_helper (gint* a,
        gint* _tmp1_;
        gint* _tmp2_;
        gint _tmp2__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = (a != NULL) ? _vala_array_dup8 (a, a_length1) : a;
        _tmp0__length1 = a_length1;
        _vala_b = (g_free (_vala_b), NULL);
@@ -954,7 +954,7 @@ nd_array_pass (gint* a,
        gint _tmp6__length1;
        gint _tmp6__length2;
        gint _tmp6__length3;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = a_length1;
        _vala_assert (_tmp0_ == 2, "a.length[0] == 2");
        _tmp1_ = a_length2;
@@ -1122,7 +1122,7 @@ test_nd_array (void)
 gint
 simple_func (void)
 {
-       gint result = 0;
+       gint result;
        result = 0;
        return result;
 }
index c641e7aef41bc164861af8f8c8fa58ec9ad4160d..02368c6ef679df1e3f56e259dd7cfa1801401159 100644 (file)
@@ -126,7 +126,7 @@ foo_meth (Foo* self,
        gint _tmp2__length1;
        const gchar** _tmp3_;
        gint _tmp3__length1;
-       const gchar** result = NULL;
+       const gchar** result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = (((const gchar**) var4) != NULL) ? _vala_array_dup1 ((const gchar**) var4, (var4_length1 * sizeof (const gchar*)) / sizeof (const gchar*)) : ((const gchar**) var4);
        _tmp0__length1 = (var4_length1 * sizeof (const gchar*)) / sizeof (const gchar*);
index 94e09084ea060c6dd76a33878ed62d43389db5be..52b5df15f8c8ac6105e781ec1d75062307d24045 100644 (file)
@@ -19,7 +19,7 @@ static void _vala_main (void);
 void*
 test (void)
 {
-       void* result = NULL;
+       void* result;
        result = NULL;
        return result;
 }
index 32473b8bb039e7f020f3bedbe623d9018ad88944..040fedcc84022296d164b125c6c5c991d6a50201 100644 (file)
@@ -103,7 +103,7 @@ foo_create_array (gint* result_length1)
        gint* _tmp0_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = g_new0 (gint, 3);
        _tmp0_[0] = 1;
        _tmp0_[1] = 2;
index 64b18d37c99daa888f912cb676e360e76922f7b3..5de4afa6feed980e219b9130486b06d7b5ff5d87 100644 (file)
@@ -45,7 +45,7 @@ bar (gint* result_length1)
        const gchar* _tmp1_;
        const gchar** _tmp2_;
        gint _tmp2__length1;
-       const gchar** result = NULL;
+       const gchar** result;
        _tmp0_ = g_new0 (const gchar*, 1 + 1);
        ret = _tmp0_;
        ret_length1 = 1;
index 5a164dd6a9f00d502d660fa1a647a01646bb5cb4..1a2ecb8b4e99daf44f625dbc57e7c3938eaf254f 100644 (file)
@@ -51,7 +51,7 @@ transfer_none (gint* result_length1)
 {
        gchar** _tmp0_;
        gint _tmp0__length1;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = FOO;
        _tmp0__length1 = G_N_ELEMENTS (FOO);
        if (result_length1) {
@@ -78,7 +78,7 @@ transfer_container (gint* result_length1)
        gint _tmp0__length1;
        const gchar** _tmp1_;
        gint _tmp1__length1;
-       const gchar** result = NULL;
+       const gchar** result;
        _tmp0_ = _vala_array_dup1 (FOO, G_N_ELEMENTS (FOO));
        _tmp0__length1 = G_N_ELEMENTS (FOO);
        _tmp1_ = _tmp0_;
@@ -115,7 +115,7 @@ transfer_full (gint* result_length1)
        gint _tmp0__length1;
        gchar** _tmp1_;
        gint _tmp1__length1;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = _vala_array_dup2 (FOO, G_N_ELEMENTS (FOO));
        _tmp0__length1 = G_N_ELEMENTS (FOO);
        _tmp1_ = _tmp0_;
index 0950106ff84c237f19b4b36a2ced226705b10b80..5d66d89398da46cbddb989dc7e56bcb6d771160d 100644 (file)
@@ -43,7 +43,7 @@ double_to_string (gdouble self)
        const gchar* _tmp2_;
        gchar* _tmp3_;
        gchar* _tmp4_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_new0 (gchar, G_ASCII_DTOSTR_BUF_SIZE);
        _tmp1_ = _tmp0_;
        _tmp1__length1 = G_ASCII_DTOSTR_BUF_SIZE;
@@ -58,7 +58,7 @@ double_to_string (gdouble self)
 static gdouble
 double_parse (const gchar* str)
 {
-       gdouble result = 0.0;
+       gdouble result;
        g_return_val_if_fail (str != NULL, 0.0);
        result = g_ascii_strtod (str, NULL);
        return result;
@@ -77,7 +77,7 @@ double_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = g_ascii_strtod (str, &_tmp0_);
@@ -214,7 +214,7 @@ test_double (void)
 static gfloat
 float_parse (const gchar* str)
 {
-       gfloat result = 0.0F;
+       gfloat result;
        g_return_val_if_fail (str != NULL, 0.0F);
        result = strtof (str, NULL);
        return result;
@@ -233,7 +233,7 @@ float_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = strtof (str, &_tmp0_);
index 7a7b656930f42eeb0061a3a8b475b55dc5e4ec2d..729465303a03bb433a58d9e6b07fabd161dda003 100644 (file)
@@ -227,7 +227,7 @@ vala_g_array_remove_index (GArray* self,
        gpointer* _tmp0_;
        gint _tmp0__length1;
        gpointer _tmp1_;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (self != NULL, NULL);
        _vala_assert (self->len > index, "length > index");
        _tmp0_ = self->data;
@@ -248,7 +248,7 @@ vala_g_array_remove_index_fast (GArray* self,
        gpointer* _tmp0_;
        gint _tmp0__length1;
        gpointer _tmp1_;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (self != NULL, NULL);
        _vala_assert (self->len > index, "length > index");
        _tmp0_ = self->data;
@@ -273,7 +273,7 @@ vala_g_array_remove_range (GArray* self,
        gint _ga_size_;
        gpointer* _tmp6_;
        gint _tmp6__length1;
-       gpointer* result = NULL;
+       gpointer* result;
        g_return_val_if_fail (self != NULL, NULL);
        _vala_assert (self->len >= (index + length), "this.length >= index + length");
        _tmp0_ = g_new0 (gpointer, length);
@@ -450,7 +450,7 @@ create_struct_garray (void)
        FooStruct _tmp10_;
        FooStruct _tmp11_;
        FooStruct* _tmp12_;
-       GArray* result = NULL;
+       GArray* result;
        _tmp0_ = g_array_new (TRUE, TRUE, sizeof (FooStruct*));
        g_array_set_clear_func (_tmp0_, (GDestroyNotify) _vala_FooStruct_free_function_content_of);
        array = _tmp0_;
@@ -572,7 +572,7 @@ test_object_garray (void)
 GArray*
 check_gvalue_garray (GArray* vals)
 {
-       GArray* result = NULL;
+       GArray* result;
        g_return_val_if_fail (vals != NULL, NULL);
        _vala_assert (g_strcmp0 (g_value_get_string (&g_array_index (vals, GValue, (guint) 0)), "foo") == 0, "vals.index (0) == \"foo\"");
        _vala_assert (g_value_get_int (&g_array_index (vals, GValue, (guint) 1)) == 42, "vals.index (1) == 42");
index 327abea09661274b8446f6f41be475bc24e1c8a0..4f3763c60d366cd7a4a0648dcfb7e8e7655af379 100644 (file)
@@ -38,7 +38,7 @@ static void _vala_main (void);
 static inline gboolean
 vala_g_list_is_empty (GList* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = ((GList*) self) == NULL;
        return result;
 }
@@ -97,7 +97,7 @@ test_glist (void)
 static inline gboolean
 vala_g_slist_is_empty (GSList* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = ((GSList*) self) == NULL;
        return result;
 }
index da44d3ea36bd3b32215a039510a77967887bcd96..48509c5f840225e40733c7b295e793c356774b99 100644 (file)
@@ -122,7 +122,7 @@ vala_g_list_remove_full (GList* self,
                          GFreeFunc func)
 {
        GList* l = NULL;
-       GList* result = NULL;
+       GList* result;
        l = self;
        while (TRUE) {
                GList* _tmp0_;
@@ -174,7 +174,7 @@ vala_g_list_remove_all_full (GList* self,
                              GFreeFunc func)
 {
        GList* l = NULL;
-       GList* result = NULL;
+       GList* result;
        l = self;
        while (TRUE) {
                GList* _tmp0_;
@@ -272,7 +272,7 @@ vala_g_slist_remove_full (GSList* self,
                           GFreeFunc func)
 {
        GSList* l = NULL;
-       GSList* result = NULL;
+       GSList* result;
        l = self;
        while (TRUE) {
                GSList* _tmp0_;
@@ -318,7 +318,7 @@ vala_g_slist_remove_all_full (GSList* self,
                               GFreeFunc func)
 {
        GSList* l = NULL;
-       GSList* result = NULL;
+       GSList* result;
        l = self;
        while (TRUE) {
                GSList* _tmp0_;
@@ -419,7 +419,7 @@ vala_g_queue_remove_full (GQueue* self,
        GList* _tmp0_;
        GList* _tmp1_;
        GList* _tmp2_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (self != NULL, FALSE);
        _tmp0_ = self->head;
        _tmp1_ = g_list_find (_tmp0_, data);
@@ -456,7 +456,7 @@ vala_g_queue_remove_all_full (GQueue* self,
        guint old_length = 0U;
        GList* l = NULL;
        GList* _tmp0_;
-       guint result = 0U;
+       guint result;
        g_return_val_if_fail (self != NULL, 0U);
        old_length = self->length;
        _tmp0_ = self->head;
index 031ff7c1438259957631b6efe22aa6d08f2f5053..8f9b4d1134fddfc6ca59de420b1a79ada98957b6 100644 (file)
@@ -153,7 +153,7 @@ gint
 compare_foo (Foo* a,
              Foo* b)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (a), 0);
        g_return_val_if_fail (IS_FOO (b), 0);
        result = b->i - a->i;
@@ -220,7 +220,7 @@ __lambda1_ (Block1Data* _data1_,
             gconstpointer** b)
 {
        GPtrArray* self;
-       gint result = 0;
+       gint result;
        self = _data1_->self;
        result = _data1_->compare_func ((gconstpointer**) (*a), (gconstpointer**) (*b));
        return result;
@@ -286,7 +286,7 @@ __lambda2_ (Block2Data* _data2_,
             gconstpointer** b)
 {
        GPtrArray* self;
-       gint result = 0;
+       gint result;
        self = _data2_->self;
        result = _data2_->compare_func ((gconstpointer**) (*a), (gconstpointer**) (*b), _data2_->compare_func_target);
        return result;
index 7afe97c3c180481fae90a62e9efab10658d81044..cdad296a0a7b0bb737316deaf16b02aaf5379ff2 100644 (file)
@@ -44,7 +44,7 @@ int_try_parse (const gchar* str,
        gint _tmp3_;
        gint _tmp4_;
        glong _tmp6_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = strtol (str, &_tmp0_, (gint) _base);
@@ -114,7 +114,7 @@ long_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = strtol (str, &_tmp0_, (gint) _base);
@@ -170,7 +170,7 @@ uint_try_parse (const gchar* str,
        gint _tmp3_;
        gint _tmp4_;
        gulong _tmp6_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = strtoul (str, &_tmp0_, (gint) _base);
@@ -240,7 +240,7 @@ ulong_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = strtoul (str, &_tmp0_, (gint) _base);
@@ -294,7 +294,7 @@ int64_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = g_ascii_strtoll (str, &_tmp0_, _base);
@@ -348,7 +348,7 @@ uint64_try_parse (const gchar* str,
        gchar* _tmp2_;
        gint _tmp3_;
        gint _tmp4_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (str != NULL, FALSE);
        errno = 0;
        _tmp1_ = g_ascii_strtoull (str, &_tmp0_, _base);
index bd4314869683bf9a32f099638b784f94c992f532..5bc7167982b1cded4134a661927c27699c1248b9 100644 (file)
@@ -41,7 +41,7 @@ static const gint SIMPLE_STRUCT_array[1] = {42};
 gint
 simple_struct_test (SimpleStruct *self)
 {
-       gint result = 0;
+       gint result;
        result = (*self).field;
        return result;
 }
@@ -85,7 +85,7 @@ simple_struct_test_pointers_element_access (void)
 static gint*
 simple_struct_return_pointer (void)
 {
-       gint* result = NULL;
+       gint* result;
        result = SIMPLE_STRUCT_array;
        return result;
 }
index 69f4443566108be964dfc284f1f3e4eb05f350f6..1bea8da16c8bd6205bfd6da50908b0392e5afb11 100644 (file)
@@ -49,7 +49,7 @@ string_slice (const gchar* self,
        gboolean _tmp2_ = FALSE;
        gboolean _tmp3_ = FALSE;
        gchar* _tmp4_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        _tmp0_ = strlen (self);
        _tmp1_ = _tmp0_;
@@ -83,7 +83,7 @@ string_get (const gchar* self,
             glong index)
 {
        gchar _tmp0_;
-       gchar result = '\0';
+       gchar result;
        g_return_val_if_fail (self != NULL, '\0');
        _tmp0_ = ((gchar*) self)[index];
        result = _tmp0_;
@@ -258,7 +258,7 @@ _vala_g_strjoinv (const gchar* separator,
                   gint str_array_length1)
 {
        gboolean _tmp0_ = FALSE;
-       gchar* result = NULL;
+       gchar* result;
        if (separator == NULL) {
                separator = "";
        }
@@ -475,7 +475,7 @@ string_replace (const gchar* self,
        gboolean _tmp0_ = FALSE;
        gboolean _tmp1_ = FALSE;
        GError* _inner_error0_ = NULL;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        g_return_val_if_fail (old != NULL, NULL);
        g_return_val_if_fail (replacement != NULL, NULL);
@@ -635,7 +635,7 @@ string_splice (const gchar* self,
        gchar* _tmp9_;
        gchar* _tmp12_;
        const gchar* _tmp13_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        _tmp0_ = strlen (self);
        _tmp1_ = _tmp0_;
@@ -768,7 +768,7 @@ string_strnlen (gchar* str,
        gchar* end = NULL;
        gchar* _tmp0_;
        gchar* _tmp1_;
-       glong result = 0L;
+       glong result;
        _tmp0_ = memchr (str, 0, (gsize) maxlen);
        end = _tmp0_;
        _tmp1_ = end;
@@ -791,7 +791,7 @@ string_substring (const gchar* self,
        glong string_length = 0L;
        gboolean _tmp0_ = FALSE;
        gchar* _tmp3_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        if (offset >= ((glong) 0)) {
                _tmp0_ = len >= ((glong) 0);
index 515949246f8bb139a0b671bae0b1402135602045..5c113131876719e70cac34e057d9d29ab686aa64 100644 (file)
@@ -32,7 +32,7 @@ vala_g_memory_output_stream_with_data (guint8* data,
                                        gsize data_length1)
 {
        GMemoryOutputStream* _tmp0_;
-       GMemoryOutputStream* result = NULL;
+       GMemoryOutputStream* result;
        _tmp0_ = (GMemoryOutputStream*) g_memory_output_stream_new (data, (gsize) data_length1, NULL, NULL);
        result = _tmp0_;
        return result;
@@ -134,7 +134,7 @@ vala_g_memory_output_stream_with_owned_data (guint8* data,
        GReallocFunc _tmp1_;
        GDestroyNotify _tmp2_;
        GMemoryOutputStream* _tmp3_;
-       GMemoryOutputStream* result = NULL;
+       GMemoryOutputStream* result;
        size = (gsize) data_length1;
        _tmp0_ = data;
        _tmp0__length1 = data_length1;
index 1a39e4ae910c383a8493deacbe6f388d67ae64bc..519b2e6b6f929e08233d45d21fd6da96298df26a 100644 (file)
@@ -51,7 +51,7 @@ foo_new (void)
 gint
 foo_sum (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (self != NULL, 0);
        result = self->a + self->b;
        return result;
@@ -81,7 +81,7 @@ bar_new (void)
 gint
 bar_mul (Bar* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (self != NULL, 0);
        result = ((Foo*) self)->a * ((Foo*) self)->b;
        return result;
@@ -90,7 +90,7 @@ bar_mul (Bar* self)
 gint
 bar_mul2 (Bar* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (self != NULL, 0);
        result = self->a * self->b;
        return result;
index 9914158dc5e43e49ea78cd7299f9c76a72dbdd4c..b756a702ee709c6e92bc46e171a01d9c704d3ff0 100644 (file)
@@ -109,7 +109,7 @@ foo_new (void)
 static gboolean
 __lambda4_ (Foo* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = TRUE;
        return result;
 }
index 9257d6e5f202ab3d2d9d476b10cc7640129a8307..1926db7806874732b27578d293adca38c41853ee 100644 (file)
@@ -38,7 +38,7 @@ static void _vala_main (void);
 gint
 foo_sum (Foo *self)
 {
-       gint result = 0;
+       gint result;
        result = (*self).a + (*self).b;
        return result;
 }
@@ -61,7 +61,7 @@ foo_free (Foo* self)
 gint
 bar_mul (Bar *self)
 {
-       gint result = 0;
+       gint result;
        result = (*self).a * (*self).b;
        return result;
 }
@@ -69,7 +69,7 @@ bar_mul (Bar *self)
 gint
 bar_mul2 (Bar *self)
 {
-       gint result = 0;
+       gint result;
        result = (*self).a * (*self).b;
        return result;
 }
index 0e89233241d3b6601cc5b410c944d784a26154fc..8ade7ae6e02818ada1e8b14faa0aa6414e315f4f 100644 (file)
@@ -33,7 +33,7 @@ gint
 foo_t_sum (foo_t self,
            foo_t b)
 {
-       gint result = 0;
+       gint result;
        result = (gint) (self + b);
        return result;
 }
@@ -42,7 +42,7 @@ gint
 bar_t_mul (bar_t self,
            bar_t b)
 {
-       gint result = 0;
+       gint result;
        result = (gint) (self * b);
        return result;
 }
@@ -51,7 +51,7 @@ gint
 bar_t_mul2 (bar_t self,
             bar_t b)
 {
-       gint result = 0;
+       gint result;
        result = (gint) (self * b);
        return result;
 }
index 8920f8df8879cdbb9694f7febd782681d5dddee6..ad1119fae4536550e15d7e647a293d1db75e57e9 100644 (file)
@@ -30,7 +30,7 @@ foo (gchar** s)
 {
        gchar* _vala_s = NULL;
        gchar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        _tmp0_ = g_strdup ("foo");
        _g_free0 (_vala_s);
        _vala_s = _tmp0_;
@@ -46,7 +46,7 @@ foo (gchar** s)
 gint
 bar (void)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
index 8ae8af4cf765dab1820dd1401d32710168efd4ca..12b91b613936182acbc3763177124ee37441100d 100644 (file)
@@ -55,7 +55,7 @@ maman_bar_main (void)
        FILE* _tmp0_;
        gint i = 0;
        FILE* _tmp4_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Break Test: 1");
        {
index 533e332a16cf4d954ca48b0660051f56f8cf95e9..1e5fb82ce2cf7a565b4aed8d8255407730db316a 100644 (file)
@@ -51,7 +51,7 @@ static gboolean
 ____lambda4_ (Block1Data* _data1_)
 {
        const gchar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        _tmp0_ = _data1_->bar;
        result = g_strcmp0 (_tmp0_, "bar") == 0;
        return result;
index cec8fea53e9871e9178d6ad40ddcd7f5a1995c74..d98351ebc5d4a9d0b0024db9fd41954e9e9ac445 100644 (file)
@@ -28,7 +28,7 @@ gchar*
 test (GError** error)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        return result;
index baa9426dfc6513c89f4129c953d70705d6c40cc2..a9d9a29b1c2d4214a00fd0049c56a0b262608cda 100644 (file)
@@ -39,7 +39,7 @@ test (gint* result_length1,
        gchar** _tmp1_;
        gchar** _tmp2_;
        gint _tmp2__length1;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("1");
        _tmp1_ = g_new0 (gchar*, 2 + 1);
        _tmp1_[0] = NULL;
index a84ab1ec113d834d5b49bf228740e07a6f0269a5..f0bb4f41da72072a1da73dde9dec5a5ea9e8444a 100644 (file)
@@ -122,7 +122,7 @@ Foo*
 may_fail (GError** error)
 {
        Foo* _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_new ();
        result = _tmp0_;
        return result;
index 47d895124c19957b26b93d2541d444e9af43178c..b9567e16dc27e9285145b708ba963d0bc7c6f77a 100644 (file)
@@ -54,7 +54,7 @@ may_fail (GError** error)
        vstring* _result_ = NULL;
        gchar* _tmp0_;
        vstring* _tmp1_;
-       vstring* result = NULL;
+       vstring* result;
        _tmp0_ = g_strdup ("test");
        _result_ = (vstring*) _tmp0_;
        _tmp1_ = _result_;
index 21e8db20b4eac832c92c5898489a10e6368214ce..2bb072f2afde53f551c18fcc51a789486b7dc7d3 100644 (file)
@@ -80,7 +80,7 @@ static void _vala_main (void);
 Foo*
 foo_foo (Foo* self)
 {
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        result = NULL;
        return result;
index 804e6a91d6d7f649a24e36a1e1e406bc517a7d82..c3727b92244f456e5de78c6a89b62f64fdb81d33 100644 (file)
@@ -147,7 +147,7 @@ foo_get_instance_private (Foo* self)
 gint
 foo_foo (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        result = self->i;
        return result;
@@ -157,7 +157,7 @@ Bar*
 foo_bar (Foo* self)
 {
        Bar* _tmp0_;
-       Bar* result = NULL;
+       Bar* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = bar_new ();
        result = _tmp0_;
@@ -175,7 +175,7 @@ foo_bars (Foo* self,
        gint _a_size_;
        Bar** _tmp5_;
        gint _tmp5__length1;
-       Bar** result = NULL;
+       Bar** result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = g_new0 (Bar*, n + 1);
        a = _tmp0_;
@@ -229,7 +229,7 @@ foo_seq (Foo* self,
        gint _a_size_;
        gint* _tmp4_;
        gint _tmp4__length1;
-       gint* result = NULL;
+       gint* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = g_new0 (gint, n);
        a = _tmp0_;
index fe4772f7883bb873eed519a6e5903569116e3644..2ca2a881fba49ed3387df08accf70039f2f86f6c 100644 (file)
@@ -36,7 +36,7 @@ gchar*
 get_bar (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
        return result;
index a2e52dae8678802f657edf0e1d94613caac3802e..efaf3e11ed364cb8fbd40796470a9d85a994eead 100644 (file)
@@ -31,7 +31,7 @@ static void _vala_main (void);
 gchar*
 get_foo (void)
 {
-       gchar* result = NULL;
+       gchar* result;
        _vala_assert (count == 0, "count == 0");
        result = NULL;
        return result;
@@ -42,7 +42,7 @@ get_bar (void)
 {
        gint _tmp0_;
        gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = count;
        count = _tmp0_ + 1;
        _vala_assert (count == 1, "count == 1");
index 9bbb1de6bbf6a9597db75e34f5b31ba7a144aa4f..9a27fcba1a21ac720075ab4adf628548898f42b5 100644 (file)
@@ -56,7 +56,7 @@ Foo*
 get_foo (gint* i)
 {
        Foo* _tmp0_ = NULL;
-       Foo* result = NULL;
+       Foo* result;
        if (i != NULL) {
                Foo* _tmp1_;
                _tmp1_ = foo_new (*i);
index 15fa908ffc997c94bd0a8f5084947ec828ce88bb..880af4204bc25db3078da635b3371a185c29f8ba 100644 (file)
@@ -36,7 +36,7 @@ gchar*
 get_bar (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
        return result;
index 9ef5cfa0800cfd99dd75c804812a5ce72c8c35e6..2e3b5bf4818550bc2a784cb3e2cb8d91493237b5 100644 (file)
@@ -58,7 +58,7 @@ maman_bar_get_number (void)
 {
        const gchar* _tmp0_ = NULL;
        gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        if (FALSE) {
                _tmp0_ = "BAD";
        } else {
@@ -80,7 +80,7 @@ maman_bar_main (void)
        gchar* _tmp5_;
        gchar* _tmp6_;
        FILE* _tmp7_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Conditional Expression Test: 1");
        if (FALSE) {
index ccd72290c30f07e35b48e7570e74f3d26d1baf79..0479213c8fdebac6e522e60badd333a98ddf3d3d 100644 (file)
@@ -64,7 +64,7 @@ Foo*
 foo_sideeffect (Foo* self)
 {
        gint _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        self->i = self->i - 1;
        _tmp0_ = self->i;
index ad6c98fc36aefa9cb7efe5475d65463c88b5a33d..42c32764a6b364d5329d9b9fe195f620b4d9ad98 100644 (file)
@@ -55,7 +55,7 @@ Foo
 foo (void)
 {
        Foo foo = 0;
-       Foo result = 0;
+       Foo result;
        foo = FOO_BAR;
        switch (foo) {
                case FOO_FOO:
index dea8a5d739d73579f25d7d9e71f748fe8894464b..c8d66e6fff45bdfc857ce20afe31a74eb6a9f8e5 100644 (file)
@@ -40,7 +40,7 @@ foo (void)
        static GQuark _tmp2_label1 = 0;
        static GQuark _tmp2_label2 = 0;
        static GQuark _tmp2_label3 = 0;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        foo = _tmp0_;
        _tmp1_ = foo;
@@ -75,7 +75,7 @@ gchar*
 get_bar (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
        return result;
@@ -91,7 +91,7 @@ bar (void)
        static GQuark _tmp2_label1 = 0;
        static GQuark _tmp2_label2 = 0;
        gchar* _tmp4_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = get_bar ();
        _tmp1_ = _tmp0_;
        _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
index 97add93dd60571faad5b206c34c41c644e6f4367..1d35aad73f905e877a76308e767c72079406dcee 100644 (file)
@@ -94,7 +94,7 @@ static gboolean
 maman_bar_test_switch_control_flow_graph (void)
 {
        gint a = 0;
-       gboolean result = FALSE;
+       gboolean result;
        a = 0;
        switch (a) {
                case 1:
@@ -120,7 +120,7 @@ maman_bar_main (void)
        MamanFoo* foo = NULL;
        MamanFoo* _tmp6_;
        FILE* _tmp7_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "For Test: 1");
        {
@@ -296,7 +296,7 @@ gint
 maman_foo_inc (MamanFoo* self)
 {
        gint _tmp0_;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (MAMAN_IS_FOO (self), 0);
        _tmp0_ = self->priv->counter;
        self->priv->counter = _tmp0_ + 1;
index 7cae17ed048db91f790ecff8ea14722ef3850ce9..f704996c41c40887c98021ff02ed7705b4263683 100644 (file)
@@ -187,7 +187,7 @@ test_test_int (Test* self,
        gint* _tmp3_;
        gint* _tmp4_;
        gint _tmp4__length1;
-       gint* result = NULL;
+       gint* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        if (i_length1 == 1) {
                gint _tmp1_;
@@ -238,7 +238,7 @@ test_test_string (Test* self,
        gchar** _tmp5_;
        gchar** _tmp6_;
        gint _tmp6__length1;
-       gchar** result = NULL;
+       gchar** result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        if (s_length1 == 1) {
                const gchar* _tmp1_;
index 014c26f9447007b7e28e7da1336a320826a800ca..b0e4b2f16f12b59f6121f2e80e6a65a4648459e2 100644 (file)
@@ -119,7 +119,7 @@ gint
 test_get_test (Test* self,
                GError** error)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = 4711;
        return result;
index c1c589bb3cca8da3eed4c5fda4300617b303e6e4..1dd1ad676a7e2453a499afe7a04d39bcd6a7f788 100644 (file)
@@ -119,7 +119,7 @@ gint
 test_get_test (Test* self,
                GError** error)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = 4711;
        return result;
index 2077f87800ceaffc5f066e3dbd65bc182bd2b2a9..2970fe51ce9f3057418145ab1b39da623cc9ae48 100644 (file)
@@ -753,7 +753,7 @@ __lambda4_ (Block1Data* _data1_,
        gboolean _tmp0_ = FALSE;
        const gchar* _tmp1_;
        GDBusMessage* _tmp6_;
-       GDBusMessage* result = NULL;
+       GDBusMessage* result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (conn, g_dbus_connection_get_type ()), NULL);
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (message, g_dbus_message_get_type ()), NULL);
        _tmp1_ = g_dbus_message_get_interface (message);
index 4049ef6b395455cc296296c4d42e600c97e50155..ad21fcde723ecf6a41e7e2672a15f76cde7a2cbc 100644 (file)
@@ -187,7 +187,7 @@ test_test_int (Test* self,
                gint* j)
 {
        gint _vala_j = 0;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        _vala_assert (i == 42, "i == 42");
        _vala_j = 23;
@@ -206,7 +206,7 @@ test_test_string (Test* self,
        gchar* _vala_t = NULL;
        gchar* _tmp0_;
        gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        g_return_val_if_fail (s != NULL, NULL);
        _vala_assert (g_strcmp0 (s, "hello") == 0, "s == \"hello\"");
index d3801ff78d05f2c2f4265a815f531841a40f1be9..b4e2361f7f21922ed3014e00596e562b26cdf568 100644 (file)
@@ -144,7 +144,7 @@ test_test_string (Test* self)
        gint _tmp2__length1;
        GVariant* _tmp6_;
        GVariant* _tmp7_;
-       GVariant* result = NULL;
+       GVariant* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_strdup ("hello");
        _tmp1_ = g_new0 (gchar*, 1 + 1);
index 536be463af81b85606e74220836f94ec37b916aa..6d6a4c792dcea38189fae41239ea352b808d8a8a 100644 (file)
@@ -145,7 +145,7 @@ test_array (Test* self,
        gdouble* _tmp0_;
        gdouble* _tmp1_;
        gint _tmp1__length1;
-       gdouble* result = NULL;
+       gdouble* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_new0 (gdouble, 2);
        _tmp0_[0] = 2.0;
@@ -168,7 +168,7 @@ test_multi_array (Test* self,
        gdouble* _tmp1_;
        gint _tmp1__length1;
        gint _tmp1__length2;
-       gdouble* result = NULL;
+       gdouble* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_new0 (gdouble, 2 * 2);
        _tmp0_[0] = 2.0;
@@ -207,7 +207,7 @@ test_multi_array2 (Test* self,
        gint _tmp9__length1;
        gint _tmp9__length2;
        gint _tmp9__length3;
-       gchar** result = NULL;
+       gchar** result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_strdup ("foo");
        _tmp1_ = g_strdup ("bar");
index 1022c606ee3f53a092795e98dfe18969cad64676..c83c0e6295155f48745f69e6ea362367768ecc9d 100644 (file)
@@ -178,7 +178,7 @@ test_test_nested_dict (Test* self)
        GHashTable* _tmp10_;
        gchar* _tmp11_;
        GHashTable* _tmp12_;
-       GHashTable* result = NULL;
+       GHashTable* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_strdup ("hello");
        _tmp1_ = g_new0 (gchar*, 1 + 1);
index 373027c4313d769ab54dd6d14241b1679dd75b11..82fd4d43f09b81518170a5514638a8199e7d7d1d 100644 (file)
@@ -251,7 +251,7 @@ static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
        Test* self;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        test_test_array_lifetime_co (_data1_->_async_data_);
        result = FALSE;
index ab9db7747b7ee2e1803778b18b28c485417c3140..1f44babeb9f12e6cb90de5268a57bdc815e9714a 100644 (file)
@@ -119,7 +119,7 @@ gint
 test_get_test (Test* self,
                GError** error)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = 4711;
        return result;
index 5787f45d72dc3ab2126961b5187aa242227ef1d1..5ca0c7f466c11c683ac9a8ff4ccd9f2031961af6 100644 (file)
@@ -263,7 +263,7 @@ test_test_dict (Test* self)
        GHashTable* _tmp3_;
        gchar* _tmp4_;
        GVariant* _tmp8_;
-       GHashTable* result = NULL;
+       GHashTable* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = g_strdup ("hello");
        _tmp1_ = g_new0 (gchar*, 1 + 1);
@@ -701,7 +701,7 @@ test_interface_foo_real_foo (TestInterfaceBar* base,
        GHashFunc _tmp0_;
        GEqualFunc _tmp1_;
        GHashTable* _tmp2_;
-       GHashTable* result = NULL;
+       GHashTable* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TEST_INTERFACE_TYPE_FOO, TestInterfaceFoo);
        _tmp0_ = g_str_hash;
        _tmp1_ = g_str_equal;
index ad30a41ebbc2fc9418e1260a4463596cb3aee966..3829a0e96b5b1e6760af2ac1881f705d5b1da86e 100644 (file)
@@ -128,7 +128,7 @@ test_do_foo (Test* self,
 {
        gchar* _vala_s = NULL;
        gchar* _tmp0_;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        _vala_assert (i == 42, "i == 42");
        _tmp0_ = g_strdup ("foo");
index 25bd10991b8ef135cc17ba1f49534b3a933f0def..e1af703bdccae889a480ccd4c6b66e15b1df5432 100644 (file)
@@ -168,7 +168,7 @@ test_test_in (Test* self,
        gint _tmp19_;
        GUnixInputStream* _tmp20_;
        GError* _inner_error0_ = NULL;
-       GUnixInputStream* result = NULL;
+       GUnixInputStream* result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (i, G_TYPE_UNIX_INPUT_STREAM), NULL);
        _tmp0_ = g_new0 (guint8, 1);
index 71b18d5639841a86e8d2db2cb3f14e70d9675b84..9b9fa702f0a9618267bcd0e3bf4afcf2f375774a 100644 (file)
@@ -333,7 +333,7 @@ call (GType t_type,
        gpointer _tmp1_;
        gpointer _tmp2_;
        GError* _inner_error0_ = NULL;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (conn, g_dbus_connection_get_type ()), NULL);
        g_return_val_if_fail (name != NULL, NULL);
        g_return_val_if_fail (object_path != NULL, NULL);
index a69750d2cded7e2154293df181293f7be32d1180..69ad1af4f6035ed8a554edb9e27b00fb68f6b02d 100644 (file)
@@ -130,7 +130,7 @@ gint
 test_get_test (Test* self,
                GError** error)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = 23;
        return result;
index ea44e8ea4390a5e11674b229da187e229168fe00..ffeb1f52baab44ae7c834440905b3a4e0c6e890a 100644 (file)
@@ -681,7 +681,7 @@ __lambda4_ (Block1Data* _data1_,
        gboolean _tmp0_ = FALSE;
        const gchar* _tmp1_;
        GDBusMessage* _tmp6_;
-       GDBusMessage* result = NULL;
+       GDBusMessage* result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (conn, g_dbus_connection_get_type ()), NULL);
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (message, g_dbus_message_get_type ()), NULL);
        _tmp1_ = g_dbus_message_get_interface (message);
index 1d719cde6bae565bf2d13e224a46658f3bb64fe4..f582dc19344d9791207c1392ea67d5f320e38f45 100644 (file)
@@ -186,7 +186,7 @@ test_list_messages (Test* self,
        gint _tmp1__length1;
        gchar** _tmp2_;
        gint _tmp2__length1;
-       gchar** result = NULL;
+       gchar** result;
        g_return_val_if_fail (IS_TEST (self), NULL);
        _tmp0_ = self->priv->messages;
        _tmp0__length1 = self->priv->messages_length1;
index f1e88b5cf6be8555ba9c7a56d781102daf3b79d8..10c8c023c4f1e8be69294d8035dba2324c12a6c7 100644 (file)
@@ -276,7 +276,7 @@ test_test_method (Test* self,
                   gint j,
                   gint k)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        _vala_assert (j == 23, "j == 23");
        _vala_assert (k == 11, "k == 11");
@@ -620,7 +620,7 @@ test_raw_test_method (TestRaw* self,
        gint _tmp1_;
        GVariant* _tmp2_;
        GVariant* _tmp3_;
-       GVariant* result = NULL;
+       GVariant* result;
        g_return_val_if_fail (IS_TEST_RAW (self), NULL);
        g_return_val_if_fail (j != NULL, NULL);
        g_return_val_if_fail (k != NULL, NULL);
index 772da589f5549927e01fe6d32286de276eb6bb2c..367a2cc95866c1a18027a768d0d7ef3c172d7c8a 100644 (file)
@@ -33,7 +33,7 @@ foo (gint* result_length1)
        gchar** _tmp0_;
        gchar** _tmp1_;
        gint _tmp1__length1;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_new0 (gchar*, 0 + 1);
        _tmp1_ = _tmp0_;
        _tmp1__length1 = 0;
index 35f39994b39e624f06111ede49991ff2f880b532..af1fae4778ae18747bfd1a9dc0537e425f69b3d9 100644 (file)
@@ -93,7 +93,7 @@ block1_data_unref (void * _userdata_)
 static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
-       gboolean result = FALSE;
+       gboolean result;
        _data1_->foo.bar = NULL;
        _data1_->foo.bar_target = NULL;
        result = FALSE;
index f42c329c41da19181037c374315387cf3df9ef5f..594ab4389d29cec8d8b72bf70c61a5dabe6e0b3e 100644 (file)
@@ -120,7 +120,7 @@ static TestEnum
 __lambda4_ (TestEnum self,
             TestEnum x)
 {
-       TestEnum result = 0;
+       TestEnum result;
        switch (self) {
                case TEST_ENUM_T:
                {
@@ -173,7 +173,7 @@ __lambda5_ (Block1Data* _data1_,
             TestEnum x)
 {
        TestEnum self;
-       TestEnum result = 0;
+       TestEnum result;
        self = _data1_->self;
        switch (self) {
                case TEST_ENUM_T:
@@ -265,7 +265,7 @@ static TestEnum
 test_g (TestEnum i,
         Test* self)
 {
-       TestEnum result = 0;
+       TestEnum result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = i;
        return result;
@@ -275,7 +275,7 @@ static gint
 test_h (gint i,
         Test* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_TEST (self), 0);
        result = i;
        return result;
@@ -500,7 +500,7 @@ _vala_main (void)
        TestEnum t = 0;
        Test* t2 = NULL;
        Test* _tmp0_;
-       gint result = 0;
+       gint result;
        t = TEST_ENUM_T;
        test_enum_f (t);
        test_enum_g (t, 0);
index 9e9379d13844f9af298cb816b062e77c8f1a9bf4..f180a86d7dc31ad8cc354be60e887149860bdb08 100644 (file)
@@ -20,7 +20,7 @@ __lambda4_ (gint* result_length1)
        gint* _tmp0_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = g_new0 (gint, 3);
        _tmp0_[0] = 1;
        _tmp0_[1] = 2;
index 159d7535166da03aa729fe15419006f25f620876..5abd863a4855d2151b617a84e8a453099b30b51f 100644 (file)
@@ -53,7 +53,7 @@ __lambda4_ (gpointer* result_target,
        FooFunc _tmp0_;
        gpointer _tmp0__target;
        GDestroyNotify _tmp0__target_destroy_notify;
-       FooFunc result = NULL;
+       FooFunc result;
        _tmp0_ = ___lambda5__foo_func;
        _tmp0__target = NULL;
        _tmp0__target_destroy_notify = NULL;
index ae52846d0210364ab1cb94123b1def5811d4c152..849fe3148a492aebae96ab198a3a249003a110e1 100644 (file)
@@ -265,7 +265,7 @@ maman_bar_do_void_action (void)
 static gint
 maman_bar_do_action (void)
 {
-       gint result = 0;
+       gint result;
        result = 4;
        return result;
 }
@@ -434,7 +434,7 @@ ___lambda4__maman_void_callback (void)
 static MamanVoidCallback
 maman_bar_test_unowned_delegate_return (void)
 {
-       MamanVoidCallback result = NULL;
+       MamanVoidCallback result;
        result = ___lambda4__maman_void_callback;
        return result;
 }
@@ -478,7 +478,7 @@ maman_bar_main (void)
        FILE* _tmp10_;
        MamanVoidCallback baz = NULL;
        MamanVoidCallback _tmp11_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Delegate Test: 1");
        void_cb = _maman_bar_do_void_action_maman_void_callback;
index cc87fa625dce457b47960659a85149dab8e7dadb..8023b65fc909ac83f9870d9b9b123cf074f2915b 100644 (file)
@@ -103,7 +103,7 @@ bar_foo (Bar* self,
          gint i)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_BAR (self), NULL);
        _vala_assert (IS_BAR (self), "this is Bar");
        _tmp0_ = g_strdup_printf ("%i", i);
index f7b889293eedc7ab41364ec6e72f450a41ce5430..73612283d2b68842937507740280303d4d323634 100644 (file)
@@ -395,7 +395,7 @@ to_int (GBinding* b,
         GValue* to)
 {
        const gchar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (b, G_TYPE_BINDING), FALSE);
        g_return_val_if_fail (from != NULL, FALSE);
        g_return_val_if_fail (to != NULL, FALSE);
@@ -412,7 +412,7 @@ to_string (GBinding* b,
 {
        gchar* _tmp0_;
        gchar* _tmp1_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (b, G_TYPE_BINDING), FALSE);
        g_return_val_if_fail (from != NULL, FALSE);
        g_return_val_if_fail (to != NULL, FALSE);
index f38ba1dcacdf1214af9b8fb7113c746e578d0be8..48922109698f1f3ffafedacf2b7403ee34a219cf 100644 (file)
@@ -15,7 +15,7 @@ static gboolean ___lambda4__gsource_dispatch_func (GSource* source,
 static gboolean
 __lambda4_ (void)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = FALSE;
        return result;
 }
index 5f79ce8a4b9e0248e59577fbf0c52b2600c3b597..1beb45a964aeef212a3add1012b33b3845ccb5c6 100644 (file)
@@ -68,7 +68,7 @@ block1_data_unref (void * _userdata_)
 static gint
 __lambda4_ (gint i)
 {
-       gint result = 0;
+       gint result;
        _vala_assert (i == 42, "i == 42");
        result = i;
        return result;
@@ -86,7 +86,7 @@ static gint
 __lambda5_ (Block1Data* _data1_,
             gint i)
 {
-       gint result = 0;
+       gint result;
        _vala_assert (i == 23, "i == 23");
        result = _data1_->global;
        return result;
index 85d2ab3f4130487f235657c95ea1ff29b7be6a62..0fd0ff7146d6eb5695529aaa60b8f2173259d93c 100644 (file)
@@ -30,7 +30,7 @@ gchar*
 bar (const gchar* s)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (s != NULL, NULL);
        _tmp0_ = g_strdup (s);
        result = _tmp0_;
index e519e2f10647c662d5c33b763a74443f8d5024da..4a89bb8f973914d7ab53a9bd9a2aabd1b4f1bc41 100644 (file)
@@ -38,7 +38,7 @@ foo (void)
        gchar* _tmp0_;
        gchar* _tmp1_;
        gchar** _tmp2_;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("foo");
        _tmp1_ = g_strdup ("bar");
        _tmp2_ = g_new0 (gchar*, 2 + 1);
index d769d657d514e9e5e9f263a73459b79783f3e87f..76c94dca9016621d99af71eb99e3b25ae9908711 100644 (file)
@@ -36,7 +36,7 @@ foo_bar (Foo self)
 {
        GEnumValue* _tmp0_;
        gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_enum_get_value (g_type_class_ref (TYPE_FOO), self);
        _tmp1_ = g_strdup ((_tmp0_ != NULL) ? _tmp0_->value_name : NULL);
        result = _tmp1_;
index 07da7d02c4de242cb198824433b6083ed8dfa8e5..2da915d10ffbf5dff2675cd90b64cf6c9b3dd544 100644 (file)
@@ -132,7 +132,7 @@ foo_struct_get_type (void)
 FooEnum
 takes_enum (FooEnum foo)
 {
-       FooEnum result = 0;
+       FooEnum result;
        result = foo;
        return result;
 }
@@ -140,7 +140,7 @@ takes_enum (FooEnum foo)
 FooEnum
 gives_enum (void)
 {
-       FooEnum result = 0;
+       FooEnum result;
        result = FOO_ENUM_MAM;
        return result;
 }
@@ -148,7 +148,7 @@ gives_enum (void)
 FooFlag
 takes_flag (FooFlag foo)
 {
-       FooFlag result = 0U;
+       FooFlag result;
        result = foo;
        return result;
 }
@@ -156,7 +156,7 @@ takes_flag (FooFlag foo)
 FooFlag
 gives_flag (void)
 {
-       FooFlag result = 0U;
+       FooFlag result;
        result = FOO_FLAG_MAM | FOO_FLAG_BAR;
        return result;
 }
index bef176eac75953c5ee6ceb6e3a2832da97273830..192a3abc1e84c77f76864d297fe25ec8ccbd8499 100644 (file)
@@ -95,7 +95,7 @@ maman_foo_get_type (void)
 gint
 maman_fooish_something (MamanFooish self)
 {
-       gint result = 0;
+       gint result;
        result = (gint) self;
        return result;
 }
@@ -166,7 +166,7 @@ maman_bar_main (void)
        MamanBar* bar = NULL;
        MamanBar* _tmp1_;
        FILE* _tmp2_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Enum Test: 1");
        _tmp1_ = maman_bar_new ();
index 8c6cfb42e5aa9b124f21c6619627f4faa6fc08f7..a3b312bab8d611f05f6bbb911dbc107e5afaea39 100644 (file)
@@ -69,7 +69,7 @@ do_bar (gint* i)
        gchar* s = NULL;
        gchar* _tmp0_;
        GError* _inner_error0_ = NULL;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("bar");
        s = _tmp0_;
        {
@@ -111,7 +111,7 @@ do_manam (gint* i)
        gchar* s = NULL;
        gchar* _tmp0_;
        GError* _inner_error0_ = NULL;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("manam");
        s = _tmp0_;
        {
index 5343de9e18452c15bf24c50256aca514b9f04367..389a07ac62caaffcf09e8307c980b44c1001d88d 100644 (file)
@@ -168,7 +168,7 @@ gchar*
 manam (GError** error)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("manam");
        result = _tmp0_;
        return result;
index a2ccd31bf18fc7b620635df9e710eaaf07d94cd6..fdfa10b370d7404a4c3c443cae49534bd8c909db 100644 (file)
@@ -92,7 +92,7 @@ foo_output_stream_real_close (GOutputStream* base,
                               GError** error)
 {
        FooOutputStream * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO_OUTPUT_STREAM, FooOutputStream);
        g_return_val_if_fail ((cancellable == NULL) || G_TYPE_CHECK_INSTANCE_TYPE (cancellable, g_cancellable_get_type ()), FALSE);
        result = TRUE;
index 7176e9395d05c900f032b0880243927b51721522..b6203644823b5fd0bd1a0d26a117315efd366be2 100644 (file)
@@ -41,7 +41,7 @@ foo (GError** error)
 {
        Foo _tmp3_ = {0};
        GError* _inner_error0_ = NULL;
-       Foo result = {0};
+       Foo result;
        if (true) {
                GError* _tmp0_;
                _tmp0_ = g_error_new_literal (FOO_ERROR, FOO_ERROR_BAR, "");
index 47319f68a45432fc5572b8d943dad067c2b4473b..f369c2d79cd20dc62cb32989a9dd648dd161a1d2 100644 (file)
@@ -34,7 +34,7 @@ GError*
 foo_from_string (const gchar* _error_)
 {
        GError* _tmp0_;
-       GError* result = NULL;
+       GError* result;
        g_return_val_if_fail (_error_ != NULL, NULL);
        _vala_assert (g_strcmp0 (_error_, "BAD") == 0, "error == \"BAD\"");
        _tmp0_ = g_error_new_literal (FOO, FOO_BAD, "BAD");
index f688fd06feb95637a675c067bd66919d72638afa..0732f2f54572fc8adbc456c9ef4133db248f50d9 100644 (file)
@@ -105,7 +105,7 @@ bar_bad (Bar* self,
 {
        FILE* _tmp0_;
        GError* _inner_error0_ = NULL;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BAR (self), 0);
        _tmp0_ = stdout;
        fprintf (_tmp0_, " 5");
index 65c9308ef3bf5cfc6ca6aa9f5a220e20ddedd6ae..edcda3bda669607f61d894f0211cbed534f12bf9 100644 (file)
@@ -110,7 +110,7 @@ foo_real_get_foo (Foo* self,
        gpointer _tmp0_;
        GCompareFunc _tmp1_;
        gpointer _tmp2_;
-       gpointer result = NULL;
+       gpointer result;
        _vala_assert (FOO_GET_INTERFACE (self)->get_g_type (self) == G_TYPE_STRING, "typeof (G) == typeof (string)");
        _tmp0_ = ((g != NULL) && (FOO_GET_INTERFACE (self)->get_g_dup_func (self) != NULL)) ? FOO_GET_INTERFACE (self)->get_g_dup_func (self) ((gpointer) g) : ((gpointer) g);
        g_copy = _tmp0_;
index 77cc98485a6ade53250fdaeb6c1c3a07e4bb2cc7..221bd42fce3f3045a4443eeeb368340af99c734d 100644 (file)
@@ -36,7 +36,7 @@ copy_list (GType g_type,
            GList* list)
 {
        GList* _result_ = NULL;
-       GList* result = NULL;
+       GList* result;
        _result_ = NULL;
        {
                GList* item_collection = NULL;
index 0bba98d7e0070597fb357f2b426749ace6c4c4f0..a80cafbc1a3ac1895cc7822c4c450564cfdf26e1 100644 (file)
@@ -322,7 +322,7 @@ foo_unref (gpointer instance)
 Foo*
 foo (GError** error)
 {
-       Foo* result = NULL;
+       Foo* result;
        result = NULL;
        return result;
 }
@@ -333,7 +333,7 @@ bar (GType g_type,
      GDestroyNotify g_destroy_func,
      Foo* foo)
 {
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail ((foo == NULL) || IS_FOO (foo), NULL);
        result = NULL;
        return result;
index df21829822a63f9d683c9b81f834a956f25938cc..2c28dafb08d70fe8823c3807e9dcd93ad821ef83 100644 (file)
@@ -97,7 +97,7 @@ foo_bar (gint* result_length1)
        gpointer* _tmp0_;
        gpointer* _tmp1_;
        gint _tmp1__length1;
-       gpointer* result = NULL;
+       gpointer* result;
        _tmp0_ = g_new0 (gpointer, 0);
        _tmp1_ = _tmp0_;
        _tmp1__length1 = 0;
index 60222ea7e331e78fafb44d521b5ae0e1f186d72f..47e1ae95cdd5771aae512aa942ff74a8b60b6b37 100644 (file)
@@ -61,7 +61,7 @@ manam (GType t_type,
        gint* _tmp0_ = NULL;
        gint* _tmp1_;
        gint* _tmp2_;
-       gpointer result = NULL;
+       gpointer result;
        _tmp1_ = __int_dup0 (&i);
        _tmp0_ = _tmp1_;
        _tmp2_ = _tmp0_;
@@ -95,7 +95,7 @@ minim (GType t_type,
        guint* _tmp0_ = NULL;
        guint* _tmp1_;
        guint* _tmp2_;
-       gpointer result = NULL;
+       gpointer result;
        _tmp1_ = __uint_dup0 (&i);
        _tmp0_ = _tmp1_;
        _tmp2_ = _tmp0_;
index 82670288d6974bcf5fef9216fdc52acbe649d649..9b7338d8b22d6c3982a5cf8230af1c32d4138fe2 100644 (file)
@@ -118,7 +118,7 @@ foo_get_g (Foo* self)
 {
        gconstpointer _tmp0_;
        gpointer _tmp1_;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = self->priv->g;
        _tmp1_ = ((_tmp0_ != NULL) && (self->priv->g_dup_func != NULL)) ? self->priv->g_dup_func ((gpointer) _tmp0_) : ((gpointer) _tmp0_);
index ce9dde3defbe9b37d8847c1a821d3f50dc8f9fe4..6a7be85c102502dc239296c4b913c9fe5f9312e0 100644 (file)
@@ -126,7 +126,7 @@ main (int argc,
 gboolean
 test (gint a)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = a == 23;
        return result;
 }
index 5a88a3624d4fc79596e01f4c705c9b0feb659958..d3e148330dfa7acca965336a305cf0ae7931b8b8 100644 (file)
@@ -60,7 +60,7 @@ main (int argc,
 static gboolean
 __lambda4_ (void)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = TRUE;
        return result;
 }
@@ -80,7 +80,7 @@ test (gpointer* result_target,
        TestFunction _tmp0_;
        gpointer _tmp0__target;
        GDestroyNotify _tmp0__target_destroy_notify;
-       TestFunction result = NULL;
+       TestFunction result;
        _tmp0_ = ___lambda4__test_function;
        _tmp0__target = NULL;
        _tmp0__target_destroy_notify = NULL;
index f683f8ed5552244eddd7c80338f742cabc4d4b5c..15b6a810918920834e86eeb8f3387cdd41a5a495 100644 (file)
@@ -49,7 +49,7 @@ gchar*
 test (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("passed");
        result = _tmp0_;
        return result;
index 06ba6333165cbd4668f46f026c53634bfc18fa56..745372794a5b8fa028b889c6c4568cdaa8143a79 100644 (file)
@@ -12,7 +12,7 @@ static gint
 _vala_main (gchar** args,
             gint args_length1)
 {
-       gint result = 0;
+       gint result;
        result = 0;
        return result;
 }
index 77b98c6fcd98d6fb9617136dfc3ab3328f0d4ea9..6d2565e613ef2e8056c30ee4fb8d023ee0102eb6 100644 (file)
@@ -142,7 +142,7 @@ test_real_test (ITest* base,
                 gint a)
 {
        Test * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_TEST, Test);
        result = a == 42;
        return result;
index d392fdc78e58123d4640b7960a59253e38823df6..9dad5e43200035035413ecec07508dc1df333ed0 100644 (file)
@@ -17,7 +17,7 @@ static void _vala_main (gchar** args,
 static const gchar*
 string_to_string (const gchar* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self;
        return result;
index 5dc2695655596c5c7900d41ca720b815449ce79e..60bb9d96442146c0ce9c222d80f4e37214840591 100644 (file)
@@ -116,7 +116,7 @@ get_object (GType g_type,
             GObject** o,
             gint o_length1)
 {
-       gpointer result = NULL;
+       gpointer result;
        result = NULL;
        return result;
 }
@@ -130,7 +130,7 @@ get_foo (void)
        gint _tmp2__length1;
        gpointer _tmp3_;
        Foo* _tmp4_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_new ();
        _tmp1_ = g_new0 (GObject*, 1 + 1);
        _tmp1_[0] = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, G_TYPE_OBJECT, GObject);
index 807f800403b3f81fb81c35e2f79b64416e982259..7b95a9f9d49f1a1b9301ea0f82f35429d39899b4 100644 (file)
@@ -295,7 +295,7 @@ foo_real_get_foo (IFoo* base,
        gint _res_size_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        _tmp0_ = g_new0 (gint, 255);
        res = _tmp0_;
@@ -346,7 +346,7 @@ foo_real_get_bar (Foo* self,
        gint _res_size_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = g_new0 (gint, 255);
        res = _tmp0_;
        res_length1 = 255;
@@ -830,7 +830,7 @@ bar_real_get_bar (Foo* base,
        gint _res_size_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        _tmp0_ = g_new0 (gint, 255);
        res = _tmp0_;
@@ -1082,7 +1082,7 @@ get_foo (guint8* result_length1)
        gint _res_size_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = g_new0 (gint, 255);
        res = _tmp0_;
        res_length1 = 255;
@@ -1138,7 +1138,7 @@ foo_func (gint* p,
        gint _tmp0__length1;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = (p != NULL) ? _vala_array_dup4 (p, p_length1) : p;
        _tmp0__length1 = p_length1;
        _tmp1_ = _tmp0_;
@@ -1170,7 +1170,7 @@ ___lambda4_ (gint* a,
        gint _tmp0__length1;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = (a != NULL) ? _vala_array_dup5 (a, a_length1) : a;
        _tmp0__length1 = a_length1;
        _tmp1_ = _tmp0_;
index 5908f7db510de5d1941b0e7e3370ad586fc7bff0..6fa956d62ebb2613ca657a27babd473cf9bc5c30 100644 (file)
@@ -84,7 +84,7 @@ do_foo (void)
        Block1Data* _data1_;
        GObject* _tmp0_;
        GObject* _tmp1_;
-       GObject* result = NULL;
+       GObject* result;
        _data1_ = g_slice_new0 (Block1Data);
        _data1_->_ref_count_ = 1;
        _tmp0_ = g_object_new (G_TYPE_OBJECT, NULL);
index 2a25a331cd2804bcb4359268846aa164a7f009c7..b06fc22ed55dbfedfeaa15098ba6502db66b1192 100644 (file)
@@ -117,7 +117,7 @@ _foo_bar___lambda4_ (Block1Data* _data1_)
 {
        Foo* self;
        gint i = 0;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        i = _data1_->value;
        result = FALSE;
index 93285b91fa3b98d470ec8cec9fdf66c462e80cf8..0787494f2f6d7c13e18458d3e24f16429cd4e866 100644 (file)
@@ -24,7 +24,7 @@ static void ___lambda5__deleg2 (GValue* foo,
 static gint
 __lambda4_ (gint* foo)
 {
-       gint result = 0;
+       gint result;
        result = (*foo) + 5;
        return result;
 }
index 529233886bba57bae3a66cf88ea831a65f7cd4a0..ea85282da778a6c5e92fa9c7e2099357c477e215 100644 (file)
@@ -365,7 +365,7 @@ baz (GType t_type,
      GBoxedCopyFunc t_dup_func,
      GDestroyNotify t_destroy_func)
 {
-       gconstpointer* result = NULL;
+       gconstpointer* result;
        result = NULL;
        return result;
 }
index 84343a0fc2e319cd8e821e540f735f78606a13da..4429c8ebb6612433d87de3a83d5192daea5fcf4f 100644 (file)
@@ -163,7 +163,7 @@ block1_data_unref (void * _userdata_)
 static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
-       gboolean result = FALSE;
+       gboolean result;
        _data1_->bar[0] = (guint8) 'b';
        _data1_->baz = NULL;
        result = FALSE;
index 749255e04491fd9a6ea164642dfc485a81d26b88..d57a21f4d92fce399d61c42a07a4d8f71efb2893 100644 (file)
@@ -154,7 +154,7 @@ gchar*
 bar_get_baz (Bar* self)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_BAR (self), NULL);
        _tmp0_ = g_strdup (N_ ("baz"));
        result = _tmp0_;
index b751ce1504d92387627e2cde42654fa8e4eb784c..542ffde789129ffc7ee5f6036cb3caa7bad10ce4 100644 (file)
@@ -107,7 +107,7 @@ foo_real_local_command_line (GApplication* base,
        gint _tmp4_ = 0;
        gboolean _tmp5_;
        GError* _inner_error0_ = NULL;
-       gboolean result = FALSE;
+       gboolean result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        _tmp0_ = g_option_context_new (NULL);
        option_context = _tmp0_;
index e8522262fa9fe607d7df039565f934489a2dc36a..c474cd9635e4ff35272b1e9ead97d0d8795f5cce 100644 (file)
@@ -121,7 +121,7 @@ __lambda4_ (Block1Data* _data1_)
        Foo* self;
        GObject* _tmp0_;
        GObject* _tmp1_;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        _tmp0_ = self->priv->bar;
        _tmp1_ = _g_object_ref0 (_tmp0_);
index 2f0d31508a0c5980970257cc7b6f5d15a58f5be0..4591c3e1278ceb4e3b17449fdc04dc92524e8f7c 100644 (file)
@@ -53,7 +53,7 @@ static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
        gchar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        _tmp0_ = g_strdup ("outerbar");
        _g_free0 (_data1_->outervar);
        _data1_->outervar = _tmp0_;
@@ -91,7 +91,7 @@ static gboolean
 __lambda6_ (Block2Data* _data2_)
 {
        gchar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        _tmp0_ = g_strdup ("innerbar");
        _g_free0 (_data2_->innervar);
        _data2_->innervar = _tmp0_;
@@ -115,7 +115,7 @@ __lambda5_ (void)
        GSourceFunc innerfunc = NULL;
        gpointer innerfunc_target;
        GDestroyNotify innerfunc_target_destroy_notify;
-       gboolean result = FALSE;
+       gboolean result;
        _data2_ = g_slice_new0 (Block2Data);
        _data2_->_ref_count_ = 1;
        _tmp0_ = g_strdup ("innerfoo");
index 272b547c880b4e5b119e52278e8ff192a0be18cc..6a2df7b5cdc688b6c95cfff93269920aecb7070b 100644 (file)
@@ -74,7 +74,7 @@ __lambda4_ (Block1Data* _data1_)
        Foo* self;
        gint _tmp0_;
        gint _tmp1_;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        _tmp0_ = foo_get_i (self);
        _tmp1_ = _tmp0_;
index b1be937c5375edaf3ebaf09e97624c9db0c6a86f..ec1d60c13ca9036e29d9b8ddc1476dc97856235f 100644 (file)
@@ -11,7 +11,7 @@ static gboolean
 __lambda4_ (void)
 {
        static const gint b = 3;
-       gboolean result = FALSE;
+       gboolean result;
        result = FALSE;
        return result;
 }
index 81acc0910e5ca5b3f611ae52e54f7d6a1e4acfb3..8a07c5d55fc6d56822a1b9d82b532ecfee496a8c 100644 (file)
@@ -288,7 +288,7 @@ static gint
 obj1_real_iface1_foo (Iface1* base)
 {
        Obj1 * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OBJ1, Obj1);
        result = 1;
        return result;
@@ -298,7 +298,7 @@ static gint
 obj1_real_iface2_foo (Iface2* base)
 {
        Obj1 * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OBJ1, Obj1);
        result = 2;
        return result;
@@ -376,7 +376,7 @@ static gint
 obj2_real_iface1_foo (Iface1* base)
 {
        Obj2 * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OBJ2, Obj2);
        result = 1;
        return result;
@@ -386,7 +386,7 @@ static gint
 obj2_real_foo (Iface2* base)
 {
        Obj2 * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_OBJ2, Obj2);
        result = 2;
        return result;
@@ -463,7 +463,7 @@ obj2_get_type (void)
 gint
 base_foo (Base* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BASE (self), 0);
        result = 42;
        return result;
index 58535062b89e1c7e0910d1873a99a7a9f7229690..1f9c89ea603c5346ff309bcd39792e3a2868deea 100644 (file)
@@ -59,7 +59,7 @@ static gchar*
 __lambda4_ (Block1Data* _data1_)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup (_data1_->bar);
        result = _tmp0_;
        return result;
@@ -82,7 +82,7 @@ foo (gchar* bar,
        Deleg _tmp0_;
        gpointer _tmp0__target;
        GDestroyNotify _tmp0__target_destroy_notify;
-       Deleg result = NULL;
+       Deleg result;
        g_return_val_if_fail (bar != NULL, NULL);
        _data1_ = g_slice_new0 (Block1Data);
        _data1_->_ref_count_ = 1;
index 5d68d6fc7debf5ee26075132c4152cd5769ff898..891aacdc34088fb2fbaaca8127f6e7a3a68c0f9c 100644 (file)
@@ -44,7 +44,7 @@ foo (gint* result_length1)
        gint _tmp0__length1;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        bar[7] = 42;
        _tmp0_ = _vala_array_dup1 (bar, 8);
        _tmp0__length1 = 8;
index e51ba76f4e397c5448be4cf9d8352776e9b2e1a4..5dd62fd0d6c69b96136edb44244962c9b5b54bc5 100644 (file)
@@ -117,7 +117,7 @@ __lambda4_ (Block1Data* _data1_)
        GType t_type;
        GBoxedCopyFunc t_dup_func;
        GDestroyNotify t_destroy_func;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        t_type = _data1_->t_type;
        t_dup_func = _data1_->t_dup_func;
index 22a2e5bf256592a41cc707327c8b478c3608f282..b4d6a760ec947a94960ba411e3fb27b66461420c 100644 (file)
@@ -356,7 +356,7 @@ bar_get_type (void)
 Foo*
 foo (void)
 {
-       Bar* result = NULL;
+       Bar* result;
        result = NULL;
        return result;
 }
index cbcccfda468083a333eb75683d4c5caee50572ab..f7376c656ea93bedecf3ba095c8cb02ab0b133db 100644 (file)
@@ -29,7 +29,7 @@ gchar*
 foo (GError** error)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        return result;
index 4ba16552b17e9cfd32acda9edbd2a59dd37bb09c..17bfd3c52097fda42956802b1380d64da8e8c155 100644 (file)
@@ -25,7 +25,7 @@ _vala_g_strjoinv (const gchar* separator,
                   gint str_array_length1)
 {
        gboolean _tmp0_ = FALSE;
-       gchar* result = NULL;
+       gchar* result;
        if (separator == NULL) {
                separator = "";
        }
index 0303b9f1cb7762897ed4b47d12be811fa01d7a52..54108bbaf0931281594bb7ed81fed2d6b621b68f 100644 (file)
@@ -81,7 +81,7 @@ foo_count_strings (Foo* self,
 {
        gint i = 0;
        va_list args = {0};
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        i = 0;
        va_start (args, self);
index af1a4779f1961351402e4685f25d29376367fbb2..c79c0cd513098fc71c59ab273e3e892eea23a146 100644 (file)
@@ -37,7 +37,7 @@ foo (gint* result_length1)
        gint* _tmp0_;
        gint* _tmp1_;
        gint _tmp1__length1;
-       gint* result = NULL;
+       gint* result;
        _tmp0_ = g_new0 (gint, 1);
        _tmp1_ = _tmp0_;
        _tmp1__length1 = 1;
@@ -55,7 +55,7 @@ bar (void)
        gchar* _tmp0_;
        gchar** _tmp1_;
        const gchar* _tmp2_;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("bar");
        _tmp1_ = g_new0 (gchar*, 1 + 1);
        _tmp1_[0] = _tmp0_;
index c2d07e25d7f53525976d3243901dc2ddfd102c86..13a74c4e86657b58ea909b23a94da34873aa99aa 100644 (file)
@@ -235,7 +235,7 @@ _vala_main (void)
 {
        Bar* obj = NULL;
        Bar* _tmp0_;
-       gint result = 0;
+       gint result;
        _tmp0_ = bar_new ();
        obj = _tmp0_;
        foo_test (G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_FOO, Foo), G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, "test");
index addb5eabc73c998082b7ac0bf1dfbe1fc1fe3663..28066f5d593b3d81ced1e4bc0081f6a30d31ea96 100644 (file)
@@ -74,7 +74,7 @@ foo_format (Foo* self,
             gint baz,
             const gchar* format)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        g_return_val_if_fail (bar != NULL, NULL);
        g_return_val_if_fail (format != NULL, NULL);
@@ -88,7 +88,7 @@ foo_format_pos (const gchar* bar,
                 const gchar* format,
                 Foo* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        g_return_val_if_fail (bar != NULL, NULL);
        g_return_val_if_fail (format != NULL, NULL);
@@ -102,7 +102,7 @@ foo_real_format_virtual (Foo* self,
                          gint baz,
                          const gchar* format)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (bar != NULL, NULL);
        g_return_val_if_fail (format != NULL, NULL);
        result = format;
@@ -114,7 +114,7 @@ foo_format_static (const gchar* foo,
                    gint baz,
                    const gchar* format)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (foo != NULL, NULL);
        g_return_val_if_fail (format != NULL, NULL);
        result = format;
@@ -173,7 +173,7 @@ foo_get_type (void)
 const gchar*
 format_wrapper (const gchar* format)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (format != NULL, NULL);
        result = format;
        return result;
index dd0bf75021116740ea62b827e73e1a1f585abba0..7c7ccccecf517217eb0f537d8bd4d4326174535d 100644 (file)
@@ -26,7 +26,7 @@ const gint FOO[3] = {0, 1, 2};
 gint*
 get_foo (void)
 {
-       gint* result = NULL;
+       gint* result;
        _vala_assert (G_N_ELEMENTS (FOO) == 3, "FOO.length == 3");
        result = FOO;
        return result;
index a0e1c43872b75c7382c177beb639295c77e12c5f..e83808f75035530485216a78e23571142d0c7ab2 100644 (file)
@@ -326,7 +326,7 @@ create_bar (GType g_type,
             GDestroyNotify g_destroy_func)
 {
        GPtrArray* _tmp0_;
-       GPtrArray* result = NULL;
+       GPtrArray* result;
        _tmp0_ = g_ptr_array_new_full ((guint) 0, g_destroy_func);
        result = _tmp0_;
        return result;
index 22c5f2c97fa719afccaaf52a25e7293d667e9b41..04d0bc022670e7728030ba95108477842585abf3 100644 (file)
@@ -159,7 +159,7 @@ static gboolean
 __lambda4_ (Block1Data* _data1_)
 {
        Foo* self;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        _g_object_unref0 (_data1_->o);
        _data1_->o = NULL;
@@ -291,7 +291,7 @@ __lambda5_ (Block2Data* _data2_)
 {
        Func _tmp0_;
        gpointer _tmp0__target;
-       gint result = 0;
+       gint result;
        _data2_->k = _data2_->k - 1;
        _tmp0_ = _data2_->B;
        _tmp0__target = _data2_->B_target;
@@ -322,7 +322,7 @@ A (gint k,
 {
        Block2Data* _data2_;
        gint _tmp0_ = 0;
-       gint result = 0;
+       gint result;
        _data2_ = g_slice_new0 (Block2Data);
        _data2_->_ref_count_ = 1;
        _data2_->k = k;
@@ -379,7 +379,7 @@ block3_data_unref (void * _userdata_)
 static gint
 __lambda6_ (Block3Data* _data3_)
 {
-       gint result = 0;
+       gint result;
        _data3_->array = NULL;
        _data3_->func ();
        result = 0;
@@ -420,7 +420,7 @@ B (gint* array,
 static gint
 __lambda7_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 1;
        return result;
 }
@@ -436,7 +436,7 @@ ___lambda7__func (gpointer self)
 static gint
 __lambda8_ (void)
 {
-       gint result = 0;
+       gint result;
        result = -1;
        return result;
 }
@@ -452,7 +452,7 @@ ___lambda8__func (gpointer self)
 static gint
 __lambda9_ (void)
 {
-       gint result = 0;
+       gint result;
        result = -1;
        return result;
 }
@@ -468,7 +468,7 @@ ___lambda9__func (gpointer self)
 static gint
 __lambda10_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 1;
        return result;
 }
@@ -484,7 +484,7 @@ ___lambda10__func (gpointer self)
 static gint
 __lambda11_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 0;
        return result;
 }
index 8d55e833058cd5074db3c9dac2136401140d6a4d..4bf0648b48a7b43f4562286dd932fc6361152eed 100644 (file)
@@ -75,7 +75,7 @@ gboolean
 foo_contains (Foo* self,
               gint item)
 {
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (IS_FOO (self), FALSE);
        result = item == 42;
        return result;
index ceaddff03bc0624efcbff07bb1d8011df0ccd782..56300d2488ba799e161161d9e1efdfd657f6f648 100644 (file)
@@ -224,7 +224,7 @@ ___lambda4__foo_func (gpointer self)
 static FooFunc
 foo_real_get_foo (Foo* self)
 {
-       FooFunc result = NULL;
+       FooFunc result;
        result = ___lambda4__foo_func;
        return result;
 }
@@ -275,7 +275,7 @@ ___lambda5__foo_func (gpointer self)
 static FooFunc
 foo_real_get_bar (Foo* self)
 {
-       FooFunc result = NULL;
+       FooFunc result;
        result = ___lambda5__foo_func;
        return result;
 }
@@ -585,7 +585,7 @@ static FooFunc
 bar_real_get_foo (Foo* base)
 {
        Bar * self;
-       FooFunc result = NULL;
+       FooFunc result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        result = ___lambda7__foo_func;
        return result;
@@ -616,7 +616,7 @@ static FooFunc
 bar_real_get_bar (Foo* base)
 {
        Bar * self;
-       FooFunc result = NULL;
+       FooFunc result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        result = ___lambda8__foo_func;
        return result;
@@ -758,7 +758,7 @@ ___lambda11__foo_func (gpointer self)
 FooFunc
 get_foo (void)
 {
-       FooFunc result = NULL;
+       FooFunc result;
        result = ___lambda11__foo_func;
        return result;
 }
index 5cf5065b2ea7cb97f6a2158d5e7d18f5043af909..44fb6b31b99c1145b6cd47aee98a181a766dc76b 100644 (file)
@@ -456,7 +456,7 @@ is_check (GType g_type,
 {
        Bar* o = NULL;
        Bar* _tmp0_;
-       gboolean result = FALSE;
+       gboolean result;
        _tmp0_ = bar_new ();
        o = _tmp0_;
        result = G_TYPE_CHECK_INSTANCE_TYPE (o, g_type);
index 3565c88ffb065478026eec85f2bfa3a9b30089fb..33a5658633313332c8bac9398960469aec3f0af9 100644 (file)
@@ -765,7 +765,7 @@ foo_iterator_get_instance_private (FooIterator* self)
 gboolean
 foo_iterator_next (FooIterator* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (IS_FOO_ITERATOR (self), FALSE);
        result = !self->priv->called;
        return result;
@@ -782,7 +782,7 @@ foo_iterator_get (FooIterator* self)
 {
        Foo* _tmp0_;
        Foo* _tmp1_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO_ITERATOR (self), NULL);
        _vala_assert (!self->priv->called, "!called");
        self->priv->called = TRUE;
@@ -1013,7 +1013,7 @@ FooIterator*
 foo_collection_iterator (FooCollection* self)
 {
        FooIterator* _tmp0_;
-       FooIterator* result = NULL;
+       FooIterator* result;
        g_return_val_if_fail (IS_FOO_COLLECTION (self), NULL);
        _tmp0_ = foo_iterator_new ();
        result = _tmp0_;
@@ -1244,7 +1244,7 @@ foo_iterator2_next_value (FooIterator2* self)
 {
        Foo* _tmp0_;
        Foo* _tmp1_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO_ITERATOR2 (self), NULL);
        if (self->priv->called) {
                result = NULL;
@@ -1478,7 +1478,7 @@ FooIterator2*
 foo_collection2_iterator (FooCollection2* self)
 {
        FooIterator2* _tmp0_;
-       FooIterator2* result = NULL;
+       FooIterator2* result;
        g_return_val_if_fail (IS_FOO_COLLECTION2 (self), NULL);
        _tmp0_ = foo_iterator2_new ();
        result = _tmp0_;
@@ -1704,7 +1704,7 @@ foo_collection3_get (FooCollection3* self,
 {
        Foo* _tmp0_;
        Foo* _tmp1_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO_COLLECTION3 (self), NULL);
        _vala_assert (index == 0, "index == 0");
        _tmp0_ = foo_instance;
@@ -2235,7 +2235,7 @@ foo_iterator4_get_instance_private (FooIterator4* self)
 gboolean
 foo_iterator4_next (FooIterator4* self)
 {
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (IS_FOO_ITERATOR4 (self), FALSE);
        result = !self->priv->called;
        return result;
@@ -2246,7 +2246,7 @@ foo_iterator4_get (FooIterator4* self)
 {
        Foo* _tmp0_;
        FooEntry4* _tmp1_;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (IS_FOO_ITERATOR4 (self), NULL);
        _vala_assert (!self->priv->called, "!called");
        self->priv->called = TRUE;
@@ -2493,7 +2493,7 @@ foo_collection4_get (FooCollection4* self,
 {
        Foo* _tmp0_;
        gpointer _tmp1_;
-       gpointer result = NULL;
+       gpointer result;
        g_return_val_if_fail (IS_FOO_COLLECTION4 (self), NULL);
        _vala_assert (g_strcmp0 (key, "foo") == 0, "key == \"foo\"");
        _tmp0_ = foo_instance;
@@ -2506,7 +2506,7 @@ FooIterator4*
 foo_collection4_iterator (FooCollection4* self)
 {
        FooIterator4* _tmp0_;
-       FooIterator4* result = NULL;
+       FooIterator4* result;
        g_return_val_if_fail (IS_FOO_COLLECTION4 (self), NULL);
        _tmp0_ = foo_iterator4_new (TYPE_FOO_ENTRY4, (GBoxedCopyFunc) foo_entry4_ref, (GDestroyNotify) foo_entry4_unref);
        result = _tmp0_;
index fad928709f5b26050eaee9ee983e7e1067df0f1f..0ca1dc91b57e70a1770c5739babcf243e8694446 100644 (file)
@@ -70,7 +70,7 @@ static GType maman_bar_get_type_once (void);
 static gint
 maman_bar_do_action (MamanActionCallback cb)
 {
-       gint result = 0;
+       gint result;
        result = cb (1);
        return result;
 }
@@ -80,7 +80,7 @@ maman_bar_do_out_action (MamanActionOutCallback cb)
 {
        gint i = 0;
        gint _tmp0_ = 0;
-       gint result = 0;
+       gint result;
        cb (&_tmp0_);
        i = _tmp0_;
        result = i;
@@ -91,7 +91,7 @@ static gint
 maman_bar_do_ref_action (MamanActionRefCallback cb)
 {
        gint i = 0;
-       gint result = 0;
+       gint result;
        i = 1;
        cb (&i);
        result = i;
@@ -101,7 +101,7 @@ maman_bar_do_ref_action (MamanActionRefCallback cb)
 static gint
 __lambda4_ (gint i)
 {
-       gint result = 0;
+       gint result;
        result = i * 2;
        return result;
 }
@@ -117,7 +117,7 @@ ___lambda4__maman_action_callback (gint i)
 static gint
 __lambda5_ (gint i)
 {
-       gint result = 0;
+       gint result;
        result = i * 3;
        return result;
 }
@@ -161,7 +161,7 @@ ___lambda7__maman_action_ref_callback (gint* i)
 static gint
 maman_bar_main (void)
 {
-       gint result = 0;
+       gint result;
        _vala_assert (maman_bar_do_action (___lambda4__maman_action_callback) == 2, "do_action (i => i * 2) == 2");
        _vala_assert (maman_bar_do_action (___lambda5__maman_action_callback) == 3, "do_action (i => { return i * 3; }) == 3");
        _vala_assert (maman_bar_do_out_action (___lambda6__maman_action_out_callback) == 4, "do_out_action ((out i) => { i = 4; }) == 4");
index fadc17878d0def540f67085bbfdc313bb7a514a7..92ac20ce4b1bdb2fd5df0cb6860a771c47339f1d 100644 (file)
@@ -59,7 +59,7 @@ block1_data_unref (void * _userdata_)
 static gint
 ___lambda4_ (Block1Data* _data1_)
 {
-       gint result = 0;
+       gint result;
        result = _data1_->x + _data1_->y;
        return result;
 }
@@ -76,7 +76,7 @@ static gboolean
 ___lambda5_ (gint a,
              gint b)
 {
-       gboolean result = FALSE;
+       gboolean result;
        _vala_assert ((a * b) == 966, "a * b == 966");
        result = TRUE;
        return result;
@@ -118,7 +118,7 @@ static const gchar*
 ___lambda7_ (gchar** s)
 {
        gchar* _tmp0_;
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (*s != NULL, NULL);
        _vala_assert (g_strcmp0 (*s, "foo") == 0, "s == \"foo\"");
        _tmp0_ = g_strdup ("bar");
index a3ba046f34d56210f4bf3697308df1dc5552a5f0..ef4002a980ff27f66d0bc76d71f04e83c9b37e6f 100644 (file)
@@ -102,7 +102,7 @@ static gint
 foo_real_bar (IFoo* base)
 {
        Foo * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = 42;
        return result;
index dab6bf147f551ea7bebe53ab6956db3d9ac35f21..dafddddf65956a9692ac71bb337cda9ff7d83382 100644 (file)
@@ -42,7 +42,7 @@ static gint ____lambda5__foo_func (gpointer self);
 static gint
 __lambda4_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 4711;
        return result;
 }
@@ -74,7 +74,7 @@ foo (gint i,
 gint
 bar (void)
 {
-       gint result = 0;
+       gint result;
        result = 23;
        return result;
 }
@@ -107,7 +107,7 @@ block1_data_unref (void * _userdata_)
 static gint
 ___lambda5_ (Block1Data* _data1_)
 {
-       gint result = 0;
+       gint result;
        result = _data1_->i;
        return result;
 }
index 2609bcf30520e754ddacafda3e5e40c54b77d33f..fbc76445f7de4100476a3833a36161a6b44dcbaf 100644 (file)
@@ -28,7 +28,7 @@ static void _vala_main (void);
 static const gchar*
 string_to_string (const gchar* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self;
        return result;
@@ -39,7 +39,7 @@ foo (void)
 {
        gchar* _tmp0_;
        const gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup_printf ("%i", 4711);
        result = _tmp0_;
        _tmp1_ = string_to_string (result);
@@ -50,7 +50,7 @@ foo (void)
 gchar*
 bar (gboolean b)
 {
-       gchar* result = NULL;
+       gchar* result;
        if (b) {
                gchar* _tmp0_;
                const gchar* _tmp1_;
index 0dc918850e768fb50f16888d5a1091568fea9a62..f577e535d07cbfbccc578f78dd0658d4876bac50 100644 (file)
@@ -114,7 +114,7 @@ bar (gchar** a,
        gint _tmp2__length1;
        const gchar* _tmp3_;
        const gchar* _tmp4_;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("manam");
        _tmp1_ = g_new0 (gchar*, 1 + 1);
        _tmp1_[0] = _tmp0_;
@@ -145,7 +145,7 @@ baz (gchar*** a,
        gint _tmp5__length1;
        const gchar* _tmp6_;
        const gchar* _tmp7_;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("bar");
        _tmp1_ = g_strdup ("foo");
        _tmp2_ = g_new0 (gchar*, 2 + 1);
@@ -185,7 +185,7 @@ bam (gchar*** a,
        gint _tmp5__length1;
        const gchar* _tmp6_;
        const gchar* _tmp7_;
-       gchar** result = NULL;
+       gchar** result;
        _tmp0_ = g_strdup ("bar");
        _tmp1_ = g_strdup ("foo");
        _tmp2_ = g_new0 (gchar*, 2 + 1);
index f8436bb267c25b204871dcb92e99f654e80027e0..25d4267b344b435c981ad874454b490639517100 100644 (file)
@@ -33,7 +33,7 @@ foo (gint i)
        gchar* _tmp3_;
        gchar* _tmp4_;
        gchar* _tmp5_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup_printf ("%i", i);
        _tmp1_ = _tmp0_;
        _tmp2_ = g_strdup_printf ("%i", i);
index 829c31743bc4657bbab040b5f07a102ddd8f71dc..7d8484f552ce8aa696fdf43e2d2585886456be0c 100644 (file)
@@ -112,7 +112,7 @@ bar (gint i)
        Func f = NULL;
        gpointer f_target;
        GDestroyNotify f_target_destroy_notify;
-       gint result = 0;
+       gint result;
        _vala_return_val_if_fail (i == 23, "i == 23", 0);
        _data1_ = g_slice_new0 (Block1Data);
        _data1_->_ref_count_ = 1;
index f1cd71e0c8743611df6a861e79f7c63255b13dc0..5409cd2186b16d1949ab2e8d20af46786d061d60 100644 (file)
@@ -55,7 +55,7 @@ gchar*
 bar (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("manam");
        result = _tmp0_;
        _vala_warn_if_fail (_vala_string_array_contains (array, G_N_ELEMENTS (array), result), "result in array");
index a0c56529305ace0c3f324380e92c8433913f9828..6371fc54467dc9076e7b5823541fd17382dd5aae 100644 (file)
@@ -157,7 +157,7 @@ foo_bar (Foo* self)
        gchar* _tmp0_;
        gint _tmp1_;
        gint _tmp2_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
@@ -180,7 +180,7 @@ gint
 foo_bar_pre (Foo* self,
              gint i)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        _vala_return_val_if_fail (i > 42, "i > 42", 0);
        _vala_assert (i == 4711, "i == 4711");
@@ -192,7 +192,7 @@ gint
 foo_faz (Foo* self,
          gint i)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        switch (i) {
                case 42:
@@ -212,7 +212,7 @@ gint
 foo_faz_pre (Foo* self,
              gint i)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        _vala_return_val_if_fail (i > 23, "i > 23", 0);
        switch (i) {
@@ -232,7 +232,7 @@ static gint
 foo_real_manam (Foo* self,
                 gint i)
 {
-       gint result = 0;
+       gint result;
        switch (i) {
                case 67:
                {
@@ -267,7 +267,7 @@ static gint
 foo_real_manam_pre (Foo* self,
                     gint i)
 {
-       gint result = 0;
+       gint result;
        _vala_return_val_if_fail (i > 23, "i > 23", 0);
        switch (i) {
                case 231:
@@ -528,7 +528,7 @@ bar_foo (Bar *self)
        gchar* _tmp0_;
        gint _tmp1_;
        gint _tmp2_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        _tmp1_ = strlen (result);
index 55f40f9432a6a77394d982f82ba46ec7c5681e14..303d5825eaf76646a546cb46f0d58c42c1f3d20e 100644 (file)
@@ -335,7 +335,7 @@ bar (const gchar* s,
 static gchar*
 bool_to_string (gboolean self)
 {
-       gchar* result = NULL;
+       gchar* result;
        if (self) {
                gchar* _tmp0_;
                _tmp0_ = g_strdup ("true");
index 0245456106011a15f5214dffac0aa316c2b0752f..9a0bba52beccb78ef2e87010573cd863ca6679d1 100644 (file)
@@ -76,7 +76,7 @@ _vala_prof_bar_exit (void)
 gint
 bar (gboolean b)
 {
-       gint result = 0;
+       gint result;
        if (!(_vala_prof_bar_level++)) {
                _vala_prof_bar_counter++;
                g_timer_continue (_vala_prof_bar_timer);
index cb8d2fa8317135cdae4ae079666ad3dc883de027..96904ba1e560467e6b7e25dd51df20a6f8fcc0d7 100644 (file)
@@ -31,7 +31,7 @@ foo (gpointer* result_target)
 {
        FooFunc _tmp0_;
        gpointer _tmp0__target;
-       FooFunc result = NULL;
+       FooFunc result;
        _tmp0_ = (FooFunc) manam;
        _tmp0__target = NULL;
        *result_target = _tmp0__target;
@@ -42,7 +42,7 @@ foo (gpointer* result_target)
 static gint
 __lambda4_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 4711;
        return result;
 }
@@ -60,7 +60,7 @@ bar (gpointer* result_target)
 {
        FooFunc _tmp0_;
        gpointer _tmp0__target;
-       FooFunc result = NULL;
+       FooFunc result;
        _tmp0_ = ___lambda4__foo_func;
        _tmp0__target = NULL;
        *result_target = _tmp0__target;
@@ -71,7 +71,7 @@ bar (gpointer* result_target)
 gint
 manam (void)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
index 17167174ab24a6c4d8536e04da5fa81f1345621c..d17da2c2a232e0f09063ae6a6fe0f7a00914fc0a 100644 (file)
@@ -131,7 +131,7 @@ static gboolean
 foo_real_ifoo_foo (IFoo* base)
 {
        Foo * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = TRUE;
        return result;
@@ -140,7 +140,7 @@ foo_real_ifoo_foo (IFoo* base)
 gint
 foo_foo (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        result = 42;
        return result;
index 1a3e6e6399fb411a6cdc810cec22fb8ed5bbbfc7..5b8caa4811a3c1ae75a11a4752c99381391a9774 100644 (file)
@@ -34,7 +34,7 @@ gchar*
 foo (void* data)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        return result;
index a30390565ab370d14075d63f85fc7971b2addc2a..2a20d4e156a00f1e4e181c39626156908dcd8244 100644 (file)
@@ -34,7 +34,7 @@ gchar*
 foo (void* data)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        return result;
index adf27b86576d3f1be9967c90bf869312b9eec085..ed87a28dc6e2820a5889ef238c8726489976fd0c 100644 (file)
@@ -255,7 +255,7 @@ get_foo_varg (const gchar* s,
        Foo** _tmp0_;
        Foo* _tmp1_;
        GObject* _tmp2_;
-       gboolean result = FALSE;
+       gboolean result;
        g_return_val_if_fail (s != NULL, FALSE);
        va_start (args, s);
        _tmp0_ = va_arg (args, Foo**);
index 41ed4a820dbd24edd15e985538860bda01a90ea7..2aecacf17de111e6b07633dda865cc42d02293f1 100644 (file)
@@ -287,7 +287,7 @@ g_vala_foo_unref (gpointer instance)
 gint
 g_vala_foo (void)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
index e0f8c5a776064375226cce6fad518b56089266cd..6db1b3142d5634243733d48f3a2f47048acc7425 100644 (file)
@@ -162,7 +162,7 @@ do_foo (void)
        Block1Data* _data1_;
        Foo* _tmp0_;
        Foo* _tmp1_;
-       Foo* result = NULL;
+       Foo* result;
        _data1_ = g_slice_new0 (Block1Data);
        _data1_->_ref_count_ = 1;
        _tmp0_ = foo_new ();
index 26f1397f5829de2e5776ef01d57786230ae75a0e..0753c7318d8286d6a47362680bb30d630fac154e 100644 (file)
@@ -77,7 +77,7 @@ Foo*
 foo_bar (Foo* self)
 {
        Foo* _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        _tmp0_ = foo_new ();
        result = _tmp0_;
index cc9b533ec094b2ae3b64b64406d80273fc9363be..d1cd5fb34f02eb2d9d2ba551fe6f3c45d318f937 100644 (file)
@@ -201,7 +201,7 @@ foo_get_type (void)
 static gint
 __lambda4_ (gint i)
 {
-       gint result = 0;
+       gint result;
        result = i + 12;
        return result;
 }
index 733d13a2f0a33311c307f07b697a72edcd23712f..886702810932462799c09c494c8170f3b92557ed 100644 (file)
@@ -94,7 +94,7 @@ static gboolean
 _foo___lambda4_ (Block1Data* _data1_)
 {
        Foo* self;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        result = _data1_->baz == 2;
        return result;
index cb3a1bc4e73c7965557792dde4f552a525704002..6797802cff39496d50c9e680f3966394968e6338 100644 (file)
@@ -124,7 +124,7 @@ static gboolean
 __lambda5_ (Block1Data* _data1_)
 {
        Foo* self;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        ((_data1_->baz == NULL) || (self->priv->t_destroy_func == NULL)) ? NULL : (_data1_->baz = (self->priv->t_destroy_func (_data1_->baz), NULL));
        _data1_->baz = NULL;
@@ -147,7 +147,7 @@ __lambda4_ (Block1Data* _data1_)
        GSourceFunc ff = NULL;
        gpointer ff_target;
        GDestroyNotify ff_target_destroy_notify;
-       gboolean result = FALSE;
+       gboolean result;
        self = _data1_->self;
        ((_data1_->baz == NULL) || (self->priv->t_destroy_func == NULL)) ? NULL : (_data1_->baz = (self->priv->t_destroy_func (_data1_->baz), NULL));
        _data1_->baz = NULL;
index 0f919bb631b29b43cc8423d58c29c52444171c65..20113ea6305923e5fe306946d63e0f27cebc2151 100644 (file)
@@ -89,7 +89,7 @@ foo_bar (Foo* self,
          gint i)
 {
        gint _tmp0_ = 0;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        g_signal_emit (self, foo_signals[FOO_BAR_SIGNAL], 0, i, &_tmp0_);
        result = _tmp0_;
@@ -163,7 +163,7 @@ foo_get_type (void)
 static gint
 __lambda4_ (gint i)
 {
-       gint result = 0;
+       gint result;
        result = i + 12;
        return result;
 }
index 240f74971949151c5d7103fe9f744ea0e1b87205..2aaa10299a07a3884b523cb2037d9ab0165de46f 100644 (file)
@@ -113,7 +113,7 @@ ref_generic (GType g_type,
              gconstpointer o)
 {
        gpointer _tmp0_;
-       gpointer result = NULL;
+       gpointer result;
        _tmp0_ = ((o != NULL) && (g_dup_func != NULL)) ? g_dup_func ((gpointer) o) : ((gpointer) o);
        result = _tmp0_;
        return result;
@@ -129,7 +129,7 @@ GObject*
 ref (GObject* o)
 {
        GObject* _tmp0_;
-       GObject* result = NULL;
+       GObject* result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (o, G_TYPE_OBJECT), NULL);
        _tmp0_ = _g_object_ref0 (o);
        result = _tmp0_;
index a572f1684297b0b250fcc66ea59a16c2b568550a..65e83ec69a7c33a98f360614889d2f8fbba075e4 100644 (file)
@@ -155,7 +155,7 @@ static const gchar*
 foo_real_foo (AbstractFoo* base)
 {
        Foo * self;
-       const gchar* result = NULL;
+       const gchar* result;
        self = (Foo*) base;
        result = "Foo";
        return result;
@@ -208,7 +208,7 @@ static const gchar*
 bar_real_foo (AbstractFoo* base)
 {
        Bar * self;
-       const gchar* result = NULL;
+       const gchar* result;
        self = (Bar*) base;
        result = "Bar";
        return result;
@@ -244,7 +244,7 @@ bar_instance_init (Bar * self)
 static const gchar*
 manam_real_foo (Manam* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        result = "Manam";
        return result;
 }
@@ -262,7 +262,7 @@ manam_foo (Manam* self)
 static gint
 manam_real_foo_plain (Manam* self)
 {
-       gint result = 0;
+       gint result;
        result = 13;
        return result;
 }
@@ -335,7 +335,7 @@ static const gchar*
 baz_real_foo (Manam* base)
 {
        Baz * self;
-       const gchar* result = NULL;
+       const gchar* result;
        self = (Baz*) base;
        result = "Baz";
        return result;
@@ -345,7 +345,7 @@ static gint
 baz_real_foo_plain (Manam* base)
 {
        Baz * self;
-       gint result = 0;
+       gint result;
        self = (Baz*) base;
        result = 23;
        return result;
index ed840464e0dcc262f12a3b96b146bdbffe27a5f7..8a6813c497b3989e90efd2af483a4845aef67ccb 100644 (file)
@@ -423,7 +423,7 @@ callback_bar (void)
 {
        Bar _tmp0_;
        Bar* _tmp1_;
-       Bar* result = NULL;
+       Bar* result;
        _tmp0_ = BAR_FOO;
        _tmp1_ = __bar_dup0 (&_tmp0_);
        result = _tmp1_;
@@ -435,7 +435,7 @@ callback_bar2 (Bar* bar)
 {
        Bar _tmp0_;
        Bar* _tmp1_;
-       Bar* result = NULL;
+       Bar* result;
        _tmp0_ = BAR_BAZ;
        _vala_assert (_bar_equal (bar, &_tmp0_) == TRUE, "bar == Bar.BAZ");
        _tmp1_ = __bar_dup0 (bar);
@@ -448,7 +448,7 @@ callback_manam (void)
 {
        Manam _tmp0_ = {0};
        Manam* _tmp1_;
-       Manam* result = NULL;
+       Manam* result;
        _tmp0_.i = 23;
        _tmp0_.j = 42;
        _tmp1_ = _manam_dup0 (&_tmp0_);
@@ -463,7 +463,7 @@ callback_manam2 (Manam* manam)
        Manam _tmp0_ = {0};
        Manam* _tmp1_;
        Manam* _tmp2_;
-       Manam* result = NULL;
+       Manam* result;
        _tmp0_.i = 23;
        _tmp0_.j = 42;
        _tmp1_ = _manam_dup0 (&_tmp0_);
index 370467a6873b3d0624cde7ef550ecc3c8340ba91..3952f809648f5126d61d1aac84e4660916be4b42 100644 (file)
@@ -129,7 +129,7 @@ gchar*
 bar_foo (Bar* self)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_BAR (self), NULL);
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
index bbd01232fe2c2d56bff96d8188df89d7088cb72a..865f7ca256732e499f913eea7ad57e09f8b9b8c4 100644 (file)
@@ -253,7 +253,7 @@ ibar_get_type (void)
 gint
 bar_foo (Bar* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BAR (self), 0);
        g_assert_not_reached ();
        result = -1;
@@ -311,7 +311,7 @@ bar_get_type (void)
 gint
 baz_foo (Baz* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BAZ (self), 0);
        result = 23;
        return result;
@@ -369,7 +369,7 @@ static gint
 foo_real_foo (IFoo* base)
 {
        Foo * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = 42;
        return result;
index e277df4900e4ce9349058bc3db842cb9394ae339..03a625b229dfbf0ccda3675f5e2550f944f2a4e0 100644 (file)
@@ -209,7 +209,7 @@ ibar_get_type (void)
 static gint
 foo_real_ifoo_foo (Foo* self)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
@@ -231,7 +231,7 @@ foo_real_ibar_foo (IBar* base)
 {
        Foo * self;
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
@@ -311,7 +311,7 @@ static gint
 bar_real_foo (Foo* base)
 {
        Bar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        result = 23;
        return result;
index 9cf5146542b882d74b7d6ccbea3ceb057448db3e..ebe228f54d9a010d1721fa424c23ce301d38b545 100644 (file)
@@ -262,7 +262,7 @@ static gint
 manam_real_ibar_foo (IBar* base)
 {
        Manam * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MANAM, Manam);
        result = 23;
        return result;
@@ -273,7 +273,7 @@ manam_real_ifoo_foo (IFoo* base)
 {
        Manam * self;
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MANAM, Manam);
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
index 37762f1dfe89a373700bdc8112efbae34e211dc8..db323d17a706c8dea39c7cd8c7aaaca8c0403a35 100644 (file)
@@ -35,7 +35,7 @@ static void _vala_main (void);
 Foo*
 foo_ref (Foo* self)
 {
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (self != NULL, NULL);
        g_atomic_int_inc ((volatile gint *) (&self->ref_count));
        result = self;
index 772e38a9757e93a44729b92303117cd0add5e823..159804d6b4140bf0d2bb7c47178f05d2fe7d8c49 100644 (file)
@@ -100,7 +100,7 @@ static void _vala_main (void);
 gint
 foo_destroy (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (self != NULL, 0);
        g_slice_free1 ((gsize) sizeof (gint), self);
        result = 42;
@@ -136,7 +136,7 @@ Foo*
 get_foo (void)
 {
        Foo* _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_new ();
        result = _tmp0_;
        return result;
index d711d8d86304f582c17acd823534ac097c49fdb4..3413e072676600b93c7ceed63af3882b11bccffd 100644 (file)
@@ -55,7 +55,7 @@ foo_source_real_prepare (GSource* base,
 {
        FooSource * self;
        gint _vala_timeout = 0;
-       gboolean result = FALSE;
+       gboolean result;
        self = (FooSource*) base;
        _vala_timeout = 1000;
        result = FALSE;
@@ -69,7 +69,7 @@ static gboolean
 foo_source_real_check (GSource* base)
 {
        FooSource * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = (FooSource*) base;
        result = FALSE;
        return result;
@@ -81,7 +81,7 @@ foo_source_real_dispatch (GSource* base,
                           gpointer callback_target)
 {
        FooSource * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = (FooSource*) base;
        result = FALSE;
        return result;
@@ -126,7 +126,7 @@ bar_source_real_prepare (GSource* base,
 {
        BarSource * self;
        gint _vala_timeout = 0;
-       gboolean result = FALSE;
+       gboolean result;
        self = (BarSource*) base;
        _vala_timeout = self->custom_timeout;
        result = FALSE;
@@ -140,7 +140,7 @@ static gboolean
 bar_source_real_check (GSource* base)
 {
        BarSource * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = (BarSource*) base;
        result = FALSE;
        return result;
@@ -152,7 +152,7 @@ bar_source_real_dispatch (GSource* base,
                           gpointer callback_target)
 {
        BarSource * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = (BarSource*) base;
        result = FALSE;
        return result;
@@ -176,7 +176,7 @@ manam_source_real_dispatch (GSource* base,
                             gpointer callback_target)
 {
        ManamSource * self;
-       gboolean result = FALSE;
+       gboolean result;
        self = (ManamSource*) base;
        result = FALSE;
        return result;
index 92bfba197df5e1a6e4e831ac0fe341278953c31c..c4ab829bef7be12834d02a1b608e078a50a69bc4 100644 (file)
@@ -139,7 +139,7 @@ static gpointer
 foo_real_get (IFoo* base)
 {
        Foo * self;
-       gpointer result = NULL;
+       gpointer result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = NULL;
        return result;
index 70a5f08a3575f744002504bac3c70b85c775e5de..acd47da3b79a158996cc9e30cef2f9269bdca5ed 100644 (file)
@@ -547,7 +547,7 @@ foo_bar (Foo* self,
 {
        const gchar* _tmp0_;
        gchar* _tmp1_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        g_return_val_if_fail (s != NULL, NULL);
        IFOO_GET_INTERFACE (self)->set_foo (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BAR, Bar), TYPE_IFOO, IFoo), s);
index 69868337cd87dfbce8f91e16f6bfd39a1663392b..626bcb248983dfeeb3b3403f63dba116cdeee063 100644 (file)
@@ -249,7 +249,7 @@ static gint
 bar_real_foo (IFoo* base)
 {
        Bar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        result = 42;
        return result;
index d328b8d184cc3c26576c5edaa8a78043f8b6f072..a5b7a72f50a6d422ad758c8026469b48943f7461 100644 (file)
@@ -301,7 +301,7 @@ maman_sub_baz_main_func (void)
        MamanIbaz* subbaz = NULL;
        MamanSubBaz* _tmp4_;
        FILE* _tmp5_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Interface Test: 1");
        _tmp1_ = maman_baz_new ();
index c4cb0f9dd4c62b5de98bf30401b8ce3df1703ae8..b458d8fd066f3e7650a7b886f54dfe644bc23d89 100644 (file)
@@ -453,7 +453,7 @@ gint
 get_int (void)
 {
        gint _tmp0_;
-       gint result = 0;
+       gint result;
        _tmp0_ = i;
        i = _tmp0_ + 1;
        result = _tmp0_;
index 51af592e8c544ef014c5f9b9db4298a40ea87434..9cf9e4ed7bff00fa29a0e6ca9bc3397c67d1c69d 100644 (file)
@@ -613,7 +613,7 @@ maman_sub_bar_main (void)
        gint _tmp27__length1;
        gchar** _tmp28_;
        gint _tmp28__length1;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Inheritance Test: 1");
        _tmp1_ = maman_sub_bar_new ();
@@ -1118,7 +1118,7 @@ maman_base_access_ifoo_get_type (void)
 static gint
 maman_base_access_foo_real_virtual_method (MamanBaseAccessFoo* self)
 {
-       gint result = 0;
+       gint result;
        result = 1;
        return result;
 }
@@ -1139,7 +1139,7 @@ static gint
 maman_base_access_foo_real_interface_method (MamanBaseAccessIFoo* base)
 {
        MamanBaseAccessFoo * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, MAMAN_BASE_ACCESS_TYPE_FOO, MamanBaseAccessFoo);
        result = 2;
        return result;
@@ -1148,7 +1148,7 @@ maman_base_access_foo_real_interface_method (MamanBaseAccessIFoo* base)
 static gint
 maman_base_access_foo_real_virtual_interface_method (MamanBaseAccessFoo* self)
 {
-       gint result = 0;
+       gint result;
        result = 3;
        return result;
 }
@@ -1230,7 +1230,7 @@ static gint
 maman_base_access_bar_real_virtual_method (MamanBaseAccessFoo* base)
 {
        MamanBaseAccessBar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, MAMAN_BASE_ACCESS_TYPE_BAR, MamanBaseAccessBar);
        result = (MAMAN_BASE_ACCESS_FOO_CLASS (maman_base_access_bar_parent_class)->virtual_method (G_TYPE_CHECK_INSTANCE_CAST (self, MAMAN_BASE_ACCESS_TYPE_FOO, MamanBaseAccessFoo)) * 10) + 4;
        return result;
@@ -1240,7 +1240,7 @@ static gint
 maman_base_access_bar_real_virtual_interface_method (MamanBaseAccessFoo* base)
 {
        MamanBaseAccessBar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, MAMAN_BASE_ACCESS_TYPE_BAR, MamanBaseAccessBar);
        result = (MAMAN_BASE_ACCESS_FOO_CLASS (maman_base_access_bar_parent_class)->virtual_interface_method (G_TYPE_CHECK_INSTANCE_CAST (self, MAMAN_BASE_ACCESS_TYPE_FOO, MamanBaseAccessFoo)) * 10) + 5;
        return result;
@@ -1300,7 +1300,7 @@ static gint
 maman_base_access_foo_bar_real_interface_method (MamanBaseAccessIFoo* base)
 {
        MamanBaseAccessFooBar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, MAMAN_BASE_ACCESS_TYPE_FOO_BAR, MamanBaseAccessFooBar);
        result = (maman_base_access_foo_bar_maman_base_access_ifoo_parent_iface->interface_method (G_TYPE_CHECK_INSTANCE_CAST (G_TYPE_CHECK_INSTANCE_CAST (self, MAMAN_BASE_ACCESS_TYPE_FOO, MamanBaseAccessFoo), MAMAN_BASE_ACCESS_TYPE_IFOO, MamanBaseAccessIFoo)) * 10) + 6;
        return result;
@@ -1310,7 +1310,7 @@ static gint
 maman_base_access_foo_bar_real_virtual_interface_method (MamanBaseAccessIFoo* base)
 {
        MamanBaseAccessFooBar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, MAMAN_BASE_ACCESS_TYPE_FOO_BAR, MamanBaseAccessFooBar);
        result = -1;
        return result;
index 48922e571be7ad240dffb2d5a40dbee46e7a6bcf..aeffdff2f1da340fe2d1a1495921b12847db5a33 100644 (file)
@@ -119,7 +119,7 @@ module_register_type (GTypeModule * module)
 GType
 init_plugin (GTypeModule* m)
 {
-       GType result = 0UL;
+       GType result;
        g_return_val_if_fail ((m == NULL) || G_TYPE_CHECK_INSTANCE_TYPE (m, g_type_module_get_type ()), 0UL);
        module_register_type (m);
        result = TYPE_MODULE;
index e4931d146dbf87066660a7c858d0cc5b4a15db4b..39dcbc1fa1fc99b9c65e5fb7c0f48514afb3853e 100644 (file)
@@ -828,7 +828,7 @@ sample_main (void)
        RealStruct* _tmp6_;
        RealStruct* _tmp7_;
        RealStruct* _tmp8_;
-       gint result = 0;
+       gint result;
        _tmp0_ = sample_new ("InitialName");
        test = _tmp0_;
        sample_run (test);
index 95a415a57a16e5db9a063fbadb71caba0c6dcaa6..9daf7ca06d173ad4bc47356721624b94308fb013 100644 (file)
@@ -804,7 +804,7 @@ _vala_bar_set_property (GObject * object,
 const gchar*
 manam (void)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        result = "manam";
        return result;
 }
index d1e3524eadc59217e68ba1335b15fd390087934d..92a356436a33cf5a14b506c75ae08f98b7d5bf6d 100644 (file)
@@ -208,7 +208,7 @@ get_foo (void)
        Foo _tmp2_;
        Foo* _tmp3_;
        Foo* _tmp4_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = g_strdup ("foo");
        _g_free0 (_tmp1_.s);
        _tmp1_.s = _tmp0_;
index 073c7238e388f3b354ee435627bc115779f2e583..f64c0349b3a38c08c5c587b9c3e2a516a82d7366 100644 (file)
@@ -134,7 +134,7 @@ get_from_array (gint index)
        gint _tmp5_;
        GRegex* _tmp6_;
        GRegex* _tmp7_;
-       GRegex* result = NULL;
+       GRegex* result;
        _tmp0_ = _g_regex_ref0 (_thread_safe_regex_init (&_tmp_regex_0, "(\\d+\\.\\d+\\.\\d+)", 0));
        _tmp1_ = _g_regex_ref0 (_thread_safe_regex_init (&_tmp_regex_1, "(\\d+)\\.\\d+\\.\\d+", 0));
        _tmp2_ = _g_regex_ref0 (_thread_safe_regex_init (&_tmp_regex_2, "\\d+\\.(\\d+)\\.\\d+", 0));
@@ -160,7 +160,7 @@ GRegex*
 get_fixed (void)
 {
        GRegex* _tmp0_;
-       GRegex* result = NULL;
+       GRegex* result;
        _tmp0_ = _g_regex_ref0 (_thread_safe_regex_init (&_tmp_regex_4, "(is.*ip)", 0));
        result = _tmp0_;
        return result;
index 88f0a214a18bec3c25de1d668de711897f5348da..0c860ee77dfaa69a35f30ff9b030b4390add4baf 100644 (file)
@@ -392,7 +392,7 @@ bar_instance_callback (Bar* self,
                        const gchar* s)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_BAR (self), NULL);
        g_return_val_if_fail (IS_FOO (foo), NULL);
        g_return_val_if_fail (s != NULL, NULL);
@@ -457,7 +457,7 @@ callback_static (Foo* foo,
                  const gchar* s)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (IS_FOO (foo), NULL);
        g_return_val_if_fail (s != NULL, NULL);
        _vala_assert (IS_FOO (foo), "foo is Foo");
index 290075d8fe388abfba8158f3ffc64e82631914a6..f35928fd0887c9a12cedb3567e1909dea744e6dc 100644 (file)
@@ -756,7 +756,7 @@ static Foo*
 __lambda4_ (void)
 {
        Foo* _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_new ();
        result = _tmp0_;
        return result;
@@ -775,7 +775,7 @@ static IBar*
 __lambda5_ (void)
 {
        Bar* _tmp0_;
-       IBar* result = NULL;
+       IBar* result;
        _tmp0_ = bar_new ();
        result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IBAR, IBar);
        return result;
index ed3b2c67c5232094cb0d1af85ad98dd7c14e227d..ab07d7489bdb76fa0c86df028172bf28abf1ce6c 100644 (file)
@@ -297,7 +297,7 @@ _vala_foo_set_property (GObject * object,
 gint
 cb_foo (void)
 {
-       gint result = 0;
+       gint result;
        result = 23;
        return result;
 }
@@ -306,7 +306,7 @@ gchar*
 cb_bar (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("foo");
        result = _tmp0_;
        return result;
@@ -315,7 +315,7 @@ cb_bar (void)
 static gint
 ___lambda4_ (void)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
@@ -333,7 +333,7 @@ static gchar*
 ___lambda5_ (void)
 {
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        _tmp0_ = g_strdup ("bar");
        result = _tmp0_;
        return result;
index a056b3f018d60d47805fb8b42a3f91fd4d4aa385..b25d17cc9c73b72267479c3c4d0e78f28966e8f4 100644 (file)
@@ -206,7 +206,7 @@ static Foo*
 __lambda4_ (void)
 {
        Foo* _tmp0_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_new ();
        result = _tmp0_;
        return result;
@@ -225,7 +225,7 @@ static IBar*
 __lambda5_ (void)
 {
        Foo* _tmp0_;
-       IBar* result = NULL;
+       IBar* result;
        _tmp0_ = foo_new ();
        result = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_IBAR, IBar);
        return result;
index 63ddd5c0ee00e73c798b51396d314f18240ed5b1..deb2050aa4464d3d8bd271018daa16b2582ca50a 100644 (file)
@@ -126,7 +126,7 @@ foo_new (void)
 static gint
 foo_real_bar (Foo* self)
 {
-       gint result = 0;
+       gint result;
        result = 23;
        return result;
 }
@@ -135,7 +135,7 @@ gint
 foo_bar (Foo* self)
 {
        gint _tmp0_ = 0;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        g_signal_emit (self, foo_signals[FOO_BAR_SIGNAL], 0, &_tmp0_);
        result = _tmp0_;
index b87e2788326481c853e02c20d6bd5199a7a60f6d..bc3658882167cb9e81efd7443d80308e6f9fd6fc 100644 (file)
@@ -365,7 +365,7 @@ ___lambda6_ (void)
        Foo _tmp2_;
        Foo* _tmp3_;
        Foo* _tmp4_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = g_strdup ("bar");
        _g_free0 (_tmp1_.s);
        _tmp1_.s = _tmp0_;
@@ -395,7 +395,7 @@ ___lambda7_ (const gchar* s)
        Foo _tmp2_;
        Foo* _tmp3_;
        Foo* _tmp4_;
-       Foo* result = NULL;
+       Foo* result;
        g_return_val_if_fail (s != NULL, NULL);
        _vala_assert (g_strcmp0 (s, "bar") == 0, "s == \"bar\"");
        _tmp0_ = g_strdup ("bar");
index 66ce470051fd07c8a43472d93c934cba49e191e7..f1b0e5356661a102cf64dba087d5c7efd15a7f57 100644 (file)
@@ -822,7 +822,7 @@ __lambda6_ (MamanReturnBar* self,
 {
        FILE* _tmp0_;
        gint _tmp1_;
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (MAMAN_IS_RETURN_FOO (foo), 0);
        _tmp0_ = stdout;
        fprintf (_tmp0_, " %d", arg);
@@ -851,7 +851,7 @@ __lambda7_ (MamanReturnBar* self,
        FILE* _tmp0_;
        gint _tmp1_;
        gchar* _tmp2_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (MAMAN_IS_RETURN_FOO (foo), NULL);
        g_return_val_if_fail (arg != NULL, NULL);
        _tmp0_ = stdout;
index 6218bdced324200c697e61e1f5ad43b14995bfcc..bc70aeb10d2b4b69872d93abdbabdbb13cb8b432 100644 (file)
@@ -184,7 +184,7 @@ maman_sub_bar_main (void)
        MamanSubBar* bar = NULL;
        MamanSubBar* _tmp1_;
        FILE* _tmp2_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Base Access Test: 1");
        _tmp1_ = maman_sub_bar_new ();
index 32040897f6e4b217e69f80354087ced9f25f1007..59a894bd345fe93dee24003bcb3c828bf86903fe 100644 (file)
@@ -170,7 +170,7 @@ maman_sub_bar_main (void)
        MamanSubBar* bar = NULL;
        MamanSubBar* _tmp1_;
        FILE* _tmp2_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Hidden Base Method Access Test: 1");
        _tmp1_ = maman_sub_bar_new ();
index f9be4cafdc93a72357c717f632f6da25c312994c..86580b1b6ec5c80fabe9752cd096c6a37b61afe7 100644 (file)
@@ -113,7 +113,7 @@ maman_foo_main (void)
        FILE* _tmp5_;
        gint _tmp6_;
        FILE* _tmp7_;
-       gint result = 0;
+       gint result;
        _tmp0_ = stdout;
        fprintf (_tmp0_, "Construct Formal Parameter Test: 1");
        _tmp1_ = maman_foo_new (2, 3);
index d8b2495c0415c87e5fa8067ee77fb00a0ea478db..b7a0771ed41108a039d915ea9392283b89fc7a6c 100644 (file)
@@ -148,7 +148,7 @@ foo_get_type (void)
 gint
 bar_get_bar (Bar* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BAR (self), 0);
        result = 23;
        return result;
@@ -205,7 +205,7 @@ bar_get_type (void)
 static gint
 manam_real_get_foo (Manam* self)
 {
-       gint result = 0;
+       gint result;
        result = 42;
        return result;
 }
index aedd1ee9da7dbce44ac14006f18812c14e2f7031..fb310b26f33d5257a104cd931a888f09983636ef 100644 (file)
@@ -87,7 +87,7 @@ foo_factory (void)
 {
        gint _tmp0_;
        Foo* _tmp1_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_ = foo_factory_called;
        foo_factory_called = _tmp0_ + 1;
        _tmp1_ = foo_new ();
index 69ccd0bbf4b972f6c66bfe2e45b8afbb9bf2cf61..a7af3ffcb018274f375843ca541b3df80d3a0fbb 100644 (file)
@@ -87,7 +87,7 @@ static void ___lambda4__foo_func (gpointer self);
 gint
 foo_bar (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        result = 23;
        return result;
index ca1b1ba0c02422f0f0faebe585f44d483c018ed6..22d990ca3fcc5813f06e9f8658bcb0c8eda3f7c4 100644 (file)
@@ -121,7 +121,7 @@ static void _vala_main (void);
 gint
 foo_foo (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        result = 23;
        return result;
@@ -343,7 +343,7 @@ foo_unref (gpointer instance)
 gint
 bar_foo (Bar* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_BAR (self), 0);
        result = 42;
        return result;
index c6bd2701393f52856c86744025360bdc85303131..5f8d7f6f0e54efb07cc62da0a1902fb86a7c391e 100644 (file)
@@ -122,7 +122,7 @@ static void _______lambda5__foo_manam (Foo* _sender,
 static gint
 foo_real_foo (Foo* self)
 {
-       gint result = 0;
+       gint result;
        result = 23;
        return result;
 }
@@ -358,7 +358,7 @@ static gint
 bar_real_foo (Foo* base)
 {
        Bar * self;
-       gint result = 0;
+       gint result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_BAR, Bar);
        result = 42;
        return result;
index 9860a1a9a71029e4162a4b7ea4990f633769d857..a0366a8d36b4b44a812d2ff8d05a9bd4b7775b76 100644 (file)
@@ -89,7 +89,7 @@ static void _____lambda4__foo_manam (Foo* _sender,
 gint
 foo_bar (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (IS_FOO (self), 0);
        result = 23;
        return result;
index 596d60839288dad69232496ba0b684cb3ea9befd..711ff201fd680024a7ef38535bb96359f50733c5 100644 (file)
@@ -636,7 +636,7 @@ test_main (void)
 {
        Test* _tmp0_;
        Test* _tmp1_;
-       gint result = 0;
+       gint result;
        _tmp0_ = test_new ();
        _tmp1_ = _tmp0_;
        test_nested (_tmp1_);
index c4ac1391c8451c7c00d00fb4e161d9629c6b6d2e..d750f192807b6e4ca703943753321ad6cba0ae42 100644 (file)
@@ -71,7 +71,7 @@ Func
 foo_foo (Foo* self,
          Func p)
 {
-       Func result = NULL;
+       Func result;
        g_return_val_if_fail (IS_FOO (self), NULL);
        result = p;
        return result;
index 1f3ff9477f4040c55a90acba4f6108cddf9fcd8f..933aa14f54cbd1ab49148171caaae4fafec18d02 100644 (file)
@@ -27,7 +27,7 @@ static void _vala_main (void);
 const gchar*
 m (void)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        result = "foo";
        return result;
 }
@@ -35,7 +35,7 @@ m (void)
 static const gchar*
 string_to_string (const gchar* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self;
        return result;
index 3b8e82eadceef7326501681d15db8f386f77aead..d825c379fb84c6b417663c396a83887c2d196c37 100644 (file)
@@ -16,7 +16,7 @@ static void _vala_main (void);
 static const gchar*
 string_to_string (const gchar* self)
 {
-       const gchar* result = NULL;
+       const gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        result = self;
        return result;
index 7b76fb9d856f240ac47f83c86359bff937b3203e..310fcbb0ee85c70cc72ac3b031cbc2ada0203e51 100644 (file)
@@ -738,7 +738,7 @@ pass_helper (int* a,
        int* _tmp1_;
        int* _tmp2_;
        int _tmp2__length1;
-       int* result = NULL;
+       int* result;
        _tmp0_ = (a != NULL) ? _vala_array_dup8 (a, a_length1) : a;
        _tmp0__length1 = a_length1;
        _vala_b = (free (_vala_b), NULL);
@@ -989,7 +989,7 @@ nd_array_pass (int* a,
        int _tmp6__length1;
        int _tmp6__length2;
        int _tmp6__length3;
-       int* result = NULL;
+       int* result;
        _tmp0_ = a_length1;
        assert (_tmp0_ == 2);
        _tmp1_ = a_length2;
@@ -1157,7 +1157,7 @@ test_nd_array (void)
 int
 simple_func (void)
 {
-       int result = 0;
+       int result;
        result = 0;
        return result;
 }
index a18289fc26357f50d5a95bdbf81f90e9928ed153..b11d450f34fccbfbef2d1a429bec5895a7f1e60a 100644 (file)
@@ -132,7 +132,7 @@ get_foo (int* result_length1)
        int _tmp1__length1;
        char** _tmp2_;
        int _tmp2__length1;
-       char** result = NULL;
+       char** result;
        _tmp0_ = foo;
        _tmp0__length1 = foo_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup1 (_tmp0_, _tmp0__length1) : _tmp0_;
@@ -168,7 +168,7 @@ get_bar (int* result_length1)
        int _tmp1__length1;
        int* _tmp2_;
        int _tmp2__length1;
-       int* result = NULL;
+       int* result;
        _tmp0_ = bar;
        _tmp0__length1 = bar_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup2 (_tmp0_, _tmp0__length1) : _tmp0_;
@@ -211,7 +211,7 @@ get_manam (int* result_length1)
        int _tmp1__length1;
        Manam* _tmp2_;
        int _tmp2__length1;
-       Manam* result = NULL;
+       Manam* result;
        _tmp0_ = manam;
        _tmp0__length1 = manam_length1;
        _tmp1_ = (_tmp0_ != NULL) ? _vala_array_dup3 (_tmp0_, _tmp0__length1) : _tmp0_;
index efb127088ddba5efa9e6103598827c43666e2dd2..5c9e3b301184094a865ee25f39f8366b9d4e1529 100644 (file)
@@ -24,7 +24,7 @@ static void _vala_main (void);
 const char*
 get_foo (void)
 {
-       const char* result = NULL;
+       const char* result;
        result = "foo";
        return result;
 }
index 3b471d8e228cb04ea6ed547f3e9f66011960b19b..4cf2d90d7d5ec2f23e27da86f50cadb8256da9a5 100644 (file)
@@ -958,7 +958,7 @@ baz_ifoo_get_type (void)
 BazFooBar1*
 manam_foo1 (Manam* self)
 {
-       BazFooBar1* result = NULL;
+       BazFooBar1* result;
        g_return_val_if_fail (IS_MANAM (self), NULL);
        result = NULL;
        return result;
@@ -967,7 +967,7 @@ manam_foo1 (Manam* self)
 BazFooIBar1*
 manam_ifoo1 (Manam* self)
 {
-       BazFooIBar1* result = NULL;
+       BazFooIBar1* result;
        g_return_val_if_fail (IS_MANAM (self), NULL);
        result = NULL;
        return result;
@@ -976,7 +976,7 @@ manam_ifoo1 (Manam* self)
 BazIFooBar2*
 manam_foo2 (Manam* self)
 {
-       BazIFooBar2* result = NULL;
+       BazIFooBar2* result;
        g_return_val_if_fail (IS_MANAM (self), NULL);
        result = NULL;
        return result;
@@ -985,7 +985,7 @@ manam_foo2 (Manam* self)
 BazIFooIBar2*
 manam_ifoo2 (Manam* self)
 {
-       BazIFooIBar2* result = NULL;
+       BazIFooIBar2* result;
        g_return_val_if_fail (IS_MANAM (self), NULL);
        result = NULL;
        return result;
index 48718206ed8eed29efa74eee0db4c001f0192fbc..0a1252961eabbb825006f86c9abe6ced6f0d1e04 100644 (file)
@@ -45,7 +45,7 @@ foo_new (void)
 gint
 foo_get_i (Foo* self)
 {
-       gint result = 0;
+       gint result;
        g_return_val_if_fail (self != NULL, 0);
        result = self->i;
        return result;
index 36f0b6a06bf58e2b0e6ea4935af49f85ee1ed8c4..4d3d90528cb725413609109fdb0ed6a950d3d6be 100644 (file)
@@ -218,7 +218,7 @@ static GInitiallyUnowned*
 foo_real_foo (IFoo* base)
 {
        Foo * self;
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = NULL;
        return result;
@@ -228,7 +228,7 @@ static GInitiallyUnowned*
 foo_real_bar (IBar* base)
 {
        Foo * self;
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_FOO, Foo);
        result = NULL;
        return result;
@@ -237,7 +237,7 @@ foo_real_bar (IBar* base)
 static GInitiallyUnowned*
 foo_real_faz (Foo* self)
 {
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        result = NULL;
        return result;
 }
@@ -257,7 +257,7 @@ foo_faz (Foo* self)
 static GInitiallyUnowned*
 foo_real_baz (Foo* self)
 {
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        result = NULL;
        return result;
 }
@@ -513,7 +513,7 @@ static GInitiallyUnowned*
 manam_real_faz (Foo* base)
 {
        Manam * self;
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MANAM, Manam);
        result = NULL;
        return result;
@@ -523,7 +523,7 @@ static GInitiallyUnowned*
 manam_real_baz (Foo* base)
 {
        Manam * self;
-       GInitiallyUnowned* result = NULL;
+       GInitiallyUnowned* result;
        self = G_TYPE_CHECK_INSTANCE_CAST (base, TYPE_MANAM, Manam);
        result = NULL;
        return result;
index 862e5193078fd043c763313d6eae2b8e51fd580e..5e582f5db91a74c55a45d3f424edef7040c2982c 100644 (file)
@@ -29,7 +29,7 @@ GVariant*
 get_floating_variant_with_error (GError** error)
 {
        GVariant* _tmp0_;
-       GVariant* result = NULL;
+       GVariant* result;
        _tmp0_ = g_variant_new_string ("bar");
        result = _tmp0_;
        return result;
index f15e34da09cea2d8f9331b66ab0e5cb11f86e844..685f20108a7e6d308c4ae28d5e090dd5046cc058 100644 (file)
@@ -35,7 +35,7 @@ GVariant*
 get_floating_variant (void)
 {
        GVariant* _tmp0_;
-       GVariant* result = NULL;
+       GVariant* result;
        _tmp0_ = g_variant_new_string ("foo");
        result = _tmp0_;
        return result;
@@ -45,7 +45,7 @@ GVariant*
 get_floating_variant_with_error (GError** error)
 {
        GVariant* _tmp0_;
-       GVariant* result = NULL;
+       GVariant* result;
        _tmp0_ = g_variant_new_string ("bar");
        result = _tmp0_;
        return result;
index 461a6966e5d9f15aa832839ce6ab7c9c251d04fc..7d80c4782967e2df5108f4d7d658f6ca9bf411ff 100644 (file)
@@ -18,7 +18,7 @@ string_chomp (const gchar* self)
 {
        gchar* _result_ = NULL;
        gchar* _tmp0_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (self != NULL, NULL);
        _tmp0_ = g_strdup (self);
        _result_ = _tmp0_;
index 43d1af6f2792fe07bf3b101703f9091737f80b20..2ab07075a3733eb8c0eea596263161d1ac9415f7 100644 (file)
@@ -33,7 +33,7 @@ foo (const gchar* format,
        va_list _tmp0_ = {0};
        gchar* _tmp1_;
        gchar* _tmp2_;
-       gchar* result = NULL;
+       gchar* result;
        g_return_val_if_fail (format != NULL, NULL);
        va_start (_tmp0_, format);
        _tmp1_ = g_strdup_vprintf (format, _tmp0_);
index 049ad5bba5ca8c45decf345ccbbb8a13fcb400ff..27102f8c1be9b16c2d83f965eb9dc35721db0c15 100644 (file)
@@ -107,7 +107,7 @@ foo_heap_owned (void)
        Foo* _tmp1_;
        Foo* _tmp2_;
        Foo* _tmp3_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_.i = 23;
        _tmp1_ = _foo_dup0 (&_tmp0_);
        _foo_free0 (foo);
@@ -124,7 +124,7 @@ foo_heap_unowned (void)
        Foo _tmp0_ = {0};
        Foo* _tmp1_;
        Foo* _tmp2_;
-       Foo* result = NULL;
+       Foo* result;
        _tmp0_.i = 42;
        _tmp1_ = _foo_dup0 (&_tmp0_);
        _foo_free0 (foo);
@@ -267,7 +267,7 @@ bar_heap_owned (void)
        Bar* _tmp3_;
        Bar* _tmp4_;
        Bar* _tmp5_;
-       Bar* result = NULL;
+       Bar* result;
        _tmp0_ = g_strdup ("bar");
        _g_free0 (_tmp1_.s);
        _tmp1_.s = _tmp0_;
@@ -290,7 +290,7 @@ bar_heap_unowned (void)
        Bar _tmp2_;
        Bar* _tmp3_;
        Bar* _tmp4_;
-       Bar* result = NULL;
+       Bar* result;
        _tmp0_ = g_strdup ("manam");
        _g_free0 (_tmp1_.s);
        _tmp1_.s = _tmp0_;
index 2d860595334196dfcbe250ead3ef7891b5465dea..21d2e91bbf3e7252e8aa986b704cdf21b48fd9a5 100644 (file)
@@ -61,7 +61,7 @@ GValue*
 get_nullable_value (GValue* v)
 {
        GValue* _tmp0_;
-       GValue* result = NULL;
+       GValue* result;
        _tmp0_ = __g_value_dup0 (v);
        result = _tmp0_;
        return result;
index 0caf6e9169a2b4b4bb4851bc5cc8537fcc620f0d..b6139ec2d89114d5de562fbf1199c8b9e11dc52f 100644 (file)
@@ -1016,7 +1016,7 @@ take_value (GValue* v)
 gboolean
 make_bool (void)
 {
-       gboolean result = FALSE;
+       gboolean result;
        result = TRUE;
        return result;
 }
index a9a58bbab44a13616affc92cde9018e78400b9c4..c7bc26b224c211cc516f363ed8d881d99569c88f 100644 (file)
@@ -31,7 +31,7 @@ Foo
 bar (GObject* o)
 {
        Foo _tmp0_ = (Foo) { .i = 23 };
-       Foo result = (Foo) { .i = 23 };
+       Foo result;
        g_return_val_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (o, G_TYPE_OBJECT), (Foo) { .i = 23 });
        result = _tmp0_;
        return result;