From f51e9f63b40ce3d5c4d40808bf1b7e83ab7d60ff Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Feb 2016 07:39:25 -0800 Subject: 2701 - turn some warnings into errors I really have only one warning left: when somebody redefines a function. I think I'm going to just turn that into an error as well and drop the notion of warnings altogether. Anytime we find something wrong we stop running the program. This is a place where hygiene is justified. --- 045closure_name.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '045closure_name.cc') diff --git a/045closure_name.cc b/045closure_name.cc index cb258583..701c69fa 100644 --- a/045closure_name.cc +++ b/045closure_name.cc @@ -80,7 +80,7 @@ void collect_surrounding_spaces(const recipe_ordinal r) { trace(9993, "name") << "lexically surrounding space for recipe " << get(Recipe, r).name << " comes from " << surrounding_recipe_name << end(); //? cerr << "lexically surrounding space for recipe " << get(Recipe, r).name << " comes from " << surrounding_recipe_name << '\n'; if (!contains_key(Recipe_ordinal, surrounding_recipe_name)) { - raise << "can't find recipe providing surrounding space for " << get(Recipe, r).name << ": " << surrounding_recipe_name << '\n' << end(); + raise_error << "can't find recipe providing surrounding space for " << get(Recipe, r).name << ": " << surrounding_recipe_name << '\n' << end(); continue; } put(Surrounding_space, r, get(Recipe_ordinal, surrounding_recipe_name)); -- cgit 1.4.1-2-gfad0