Skip to content

Commit

Permalink
lib.yang.state: muffle warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Nov 16, 2022
1 parent 04c79b6 commit 0059c0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/yang/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ function state_reader_from_grammar(production, maybe_keyword)
-- TODO: Right now we basically map leaves to counters; we have
-- no structured way to know what keys we might use. To make
-- tables here we'd need more of a design!
io.stderr:write(
'WARNING: Reading state into tables not yet implemented\n')
-- io.stderr:write(
-- 'WARNING: Reading state into lists is not yet implemented\n')
return function(counters) return nil end
end
function visitor.array(keyword, production)
-- For similar reasons as tables, no idea what to do here!
io.stderr:write(
'WARNING: Reading state into arrays not yet implemented\n')
-- io.stderr:write(
-- 'WARNING: Reading state into arrays not yet implemented\n')
return function(counters) return nil end
end
function visitor.struct(keyword, production)
Expand Down

0 comments on commit 0059c0b

Please sign in to comment.