diff options
author | Damien George <damien.p.george@gmail.com> | 2019-02-25 14:52:36 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-02-25 14:52:36 +1100 |
commit | 4ee2c2a4cd1914a06175919cc2fb6403ad668318 (patch) | |
tree | 1d4f0ef48206f958344bae11f96fd88fb652d976 /py/compile.c | |
parent | 5801a003f055a9db6d569fbb0ffc3018dcaa8c3e (diff) |
py: Eliminate warnings about unused arguments when debugging disabled.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/compile.c b/py/compile.c index 5b381e41d..4aaa68e6c 100644 --- a/py/compile.c +++ b/py/compile.c @@ -2776,6 +2776,8 @@ STATIC int compile_viper_type_annotation(compiler_t *comp, mp_parse_node_t pn_an #endif STATIC void compile_scope_func_lambda_param(compiler_t *comp, mp_parse_node_t pn, pn_kind_t pn_name, pn_kind_t pn_star, pn_kind_t pn_dbl_star) { + (void)pn_dbl_star; + // check that **kw is last if ((comp->scope_cur->scope_flags & MP_SCOPE_FLAG_VARKEYWORDS) != 0) { compile_syntax_error(comp, pn, "invalid syntax"); |