From 3c0ee1a46468d89b8865cd70616af4558c499b16 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Fri, 30 Apr 2010 16:22:42 +0000 Subject: [PATCH] * python/py-param.c (parm_constants): Avoid ARI warning by adding ARI comment. (parmpy_init): Likewise. --- gdb/ChangeLog | 6 ++++++ gdb/python/py-param.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1b9094f1d86..889437e975f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-04-30 Pierre Muller + + * python/py-param.c (parm_constants): Avoid ARI warning + by adding ARI comment. + (parmpy_init): Likewise. + 2010-04-30 Pierre Muller * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index 36f96f5ebad..20ac9931aae 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -36,7 +36,7 @@ struct parm_constant struct parm_constant parm_constants[] = { - { "PARAM_BOOLEAN", var_boolean }, + { "PARAM_BOOLEAN", var_boolean }, /* ARI: var_boolean */ { "PARAM_AUTO_BOOLEAN", var_auto_boolean }, { "PARAM_UINTEGER", var_uinteger }, { "PARAM_INTEGER", var_integer }, @@ -475,7 +475,8 @@ parmpy_init (PyObject *self, PyObject *args, PyObject *kwds) return -1; } - if (parmclass != var_boolean && parmclass != var_auto_boolean + if (parmclass != var_boolean /* ARI: var_boolean */ + && parmclass != var_auto_boolean && parmclass != var_uinteger && parmclass != var_integer && parmclass != var_string && parmclass != var_string_noescape && parmclass != var_optional_filename && parmclass != var_filename -- 2.30.2