authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-12-14 10:31:32-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2015-12-14 10:31:32-07:00
log9dbedb02cc7291b2d67407183399667205c4e0af
treeda3c591944b4c1452f03c788691a6750bdc53b75
parent630917b29b00f8bc1a867921c3f0e34d798a0515

fix compile -Werrors


2 files changed, 6 insertions(+), 0 deletions(-)

src/analyze.cpp+1
...@@ -654,6 +654,7 @@ static bool num_lit_fits_in_other_type(CodeGen *g, TypeTableEntry *literal_type,...@@ -654,6 +654,7 @@ static bool num_lit_fits_in_other_type(CodeGen *g, TypeTableEntry *literal_type,
654 return false;654 return false;
655 }655 }
656 }656 }
657 zig_unreachable();
657}658}
658659
659660
src/parser.cpp+5
...@@ -701,6 +701,11 @@ static void parse_number_literal(ParseContext *pc, Token *token, AstNodeNumberLi...@@ -701,6 +701,11 @@ static void parse_number_literal(ParseContext *pc, Token *token, AstNodeNumberLi
701 double x;701 double x;
702702
703 (void)x;703 (void)x;
704 (void)decimal_end;
705 (void)e_present;
706 (void)e_positive;
707 (void)e_digit_start;
708 (void)e_digit_end;
704 zig_panic("TODO parse float");709 zig_panic("TODO parse float");
705 } else {710 } else {
706 // integer711 // integer