lint: unused parameter

This commit is contained in:
Kurtis Rader
2016-11-01 19:12:14 -07:00
parent 19e12e3747
commit e73226d7e8
7 changed files with 21 additions and 13 deletions

View File

@@ -428,6 +428,7 @@ RESOLVE_ONLY(end_command) = {KEYWORD(parse_keyword_end)};
case (symbol_##sym): \
resolver = resolve_##sym; \
break;
const production_t *parse_productions::production_for_token(parse_token_type_t node_type,
const parse_token_t &input1,
const parse_token_t &input2,
@@ -436,8 +437,9 @@ const production_t *parse_productions::production_for_token(parse_token_type_t n
token_type_description(node_type), input1.describe().c_str());
// Fetch the function to resolve the list of productions.
const production_t *(*resolver)(const parse_token_t &input1, const parse_token_t &input2,
parse_node_tag_t *out_tag) = NULL;
const production_t *(*resolver)(const parse_token_t &input1, //!OCLINT(unused param)
const parse_token_t &input2, //!OCLINT(unused param)
parse_node_tag_t *out_tag) = NULL; //!OCLINT(unused param)
switch (node_type) {
TEST(job_list)
TEST(job)