From 9dbedb02cc7291b2d67407183399667205c4e0af Mon Sep 17 00:00:00 2001 From: Josh Wolfe Date: Mon, 14 Dec 2015 10:31:32 -0700 Subject: [PATCH] fix compile -Werrors --- src/analyze.cpp | 1 + src/parser.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/analyze.cpp b/src/analyze.cpp index 7243b8565a..b966cb4e30 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -654,6 +654,7 @@ static bool num_lit_fits_in_other_type(CodeGen *g, TypeTableEntry *literal_type, return false; } } + zig_unreachable(); } diff --git a/src/parser.cpp b/src/parser.cpp index c94daf5582..797c7b97b5 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -701,6 +701,11 @@ static void parse_number_literal(ParseContext *pc, Token *token, AstNodeNumberLi double x; (void)x; + (void)decimal_end; + (void)e_present; + (void)e_positive; + (void)e_digit_start; + (void)e_digit_end; zig_panic("TODO parse float"); } else { // integer