From d9fbb9e64163e4bf8c0c89b7031e0efcfad1fc92 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 18 Dec 2014 15:34:41 -0500 Subject: [PATCH] parser: add `no_warning` in generated files to disable some warnings Signed-off-by: Jean Privat --- src/parser/lexer.nit | 2 +- src/parser/parser.nit | 2 +- src/parser/parser_abs.nit | 2 +- src/parser/parser_prod.nit | 2 +- src/parser/xss/main.xss | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/parser/lexer.nit b/src/parser/lexer.nit index e7d48a0..2335cd3 100644 --- a/src/parser/lexer.nit +++ b/src/parser/lexer.nit @@ -1,6 +1,6 @@ # Lexer and its tokens. # This file was generated by SableCC (http://www.sablecc.org/). -module lexer +module lexer is no_warning("missing-doc") intrude import parser_nodes intrude import lexer_work diff --git a/src/parser/parser.nit b/src/parser/parser.nit index 113a2a3..cb93087 100644 --- a/src/parser/parser.nit +++ b/src/parser/parser.nit @@ -1,6 +1,6 @@ # Parser. # This file was generated by SableCC (http://www.sablecc.org/). -module parser +module parser is no_warning("missing-doc", "unread-variable") intrude import parser_prod intrude import parser_work diff --git a/src/parser/parser_abs.nit b/src/parser/parser_abs.nit index 07045e3..f24783a 100644 --- a/src/parser/parser_abs.nit +++ b/src/parser/parser_abs.nit @@ -1,6 +1,6 @@ # Raw AST node hierarchy. # This file was generated by SableCC (http://www.sablecc.org/). -module parser_abs +module parser_abs is no_warning("missing-doc") import location diff --git a/src/parser/parser_prod.nit b/src/parser/parser_prod.nit index 9964ed8..f302e3e 100644 --- a/src/parser/parser_prod.nit +++ b/src/parser/parser_prod.nit @@ -1,6 +1,6 @@ # Production AST nodes full definition. # This file was generated by SableCC (http://www.sablecc.org/). -module parser_prod +module parser_prod is no_warning("missing-doc") import lexer intrude import parser_nodes diff --git a/src/parser/xss/main.xss b/src/parser/xss/main.xss index 00507f9..fae2ea4 100644 --- a/src/parser/xss/main.xss +++ b/src/parser/xss/main.xss @@ -23,7 +23,7 @@ $ include 'prods.xss' $ output 'parser_abs.nit' # Raw AST node hierarchy. # This file was generated by SableCC (http://www.sablecc.org/). -module parser_abs +module parser_abs is no_warning("missing-doc") import location @@ -34,7 +34,7 @@ $ end output $ output 'lexer.nit' # Lexer and its tokens. # This file was generated by SableCC (http://www.sablecc.org/). -module lexer +module lexer is no_warning("missing-doc") $ if $usermodule intrude import $usermodule @@ -51,7 +51,7 @@ $ end output $ output 'parser_prod.nit' # Production AST nodes full definition. # This file was generated by SableCC (http://www.sablecc.org/). -module parser_prod +module parser_prod is no_warning("missing-doc") import lexer $ if $usermodule @@ -67,7 +67,7 @@ $ end output $ output 'parser.nit' # Parser. # This file was generated by SableCC (http://www.sablecc.org/). -module parser +module parser is no_warning("missing-doc", "unread-variable") intrude import parser_prod intrude import parser_work -- 1.7.9.5