diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-05 16:18:49 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-05 16:18:49 -0400 |
| commit | 4979e606c36fdca886f82b0dd8c0db17374ab8f6 (patch) | |
| tree | 0ea4b7daf7c89dd075221648518f06e1694ee02d /src/analyze.cpp | |
| parent | 20eb749ad6983d74ce8285a725d84248d41fca00 (diff) | |
| download | zig-4979e606c36fdca886f82b0dd8c0db17374ab8f6.tar.gz zig-4979e606c36fdca886f82b0dd8c0db17374ab8f6.zip | |
fix gcc 5.4.0compile errors
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index e1728448e3..3064ad359d 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -6026,7 +6026,7 @@ static TypeTableEntry *analyze_switch_expr(CodeGen *g, ImportTableEntry *import, int *field_use_counts = nullptr; - HashMap<int, AstNode *, int_hash, int_eq> err_use_nodes; + HashMap<int, AstNode *, int_hash, int_eq> err_use_nodes = {}; if (expr_type->id == TypeTableEntryIdEnum) { field_use_counts = allocate<int>(expr_type->data.enumeration.field_count); } else if (expr_type->id == TypeTableEntryIdErrorUnion) { |
