diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-11-11 23:05:36 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-11-11 23:05:36 (GMT) |
commit | 355a7140932b77d351bc6ddd965608b0011af855 (patch) | |
tree | f297872a2a33e0617d5fad0c85d00871f1482b06 /src/format/mangling | |
parent | 0727204e36e919f06e80181482981c3f19669d76 (diff) |
Fixed most of the warnings about use of uninitialized data.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@607 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/mangling')
-rw-r--r-- | src/format/mangling/itanium/abi.c | 2 | ||||
-rw-r--r-- | src/format/mangling/itanium/component.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/format/mangling/itanium/abi.c b/src/format/mangling/itanium/abi.c index f02d4cc..b9c3dfa 100644 --- a/src/format/mangling/itanium/abi.c +++ b/src/format/mangling/itanium/abi.c @@ -2271,6 +2271,8 @@ static itanium_component *itd_expr_primary(GItaniumDContext *context) itd_unref_comp(type); } + else + result = NULL; /* Règle <mangled-name> */ diff --git a/src/format/mangling/itanium/component.c b/src/format/mangling/itanium/component.c index def9a38..d147ba8 100644 --- a/src/format/mangling/itanium/component.c +++ b/src/format/mangling/itanium/component.c @@ -593,6 +593,9 @@ char *itd_translate_component(GItaniumDContext *context, const itanium_component case IOT_VENDOR: result = stradd(base, "TODO_VENDOR"); break; + default: + result = NULL; + break; } break; |