summaryrefslogtreecommitdiff
path: root/gdb/registry.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/registry.h')
-rw-r--r--gdb/registry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/registry.h b/gdb/registry.h
index 54aad6b7c4..3df4749ce2 100644
--- a/gdb/registry.h
+++ b/gdb/registry.h
@@ -117,7 +117,7 @@ public:
void set (T *obj, DATA *data) const
{
registry<T> *reg_obj = registry_accessor<T>::get (obj);
- reg_obj->set (m_key, data);
+ reg_obj->set (m_key, (typename std::remove_const<DATA> *) data);
}
/* If this key uses the default deleter, then this method is