summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-18 10:52:05 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-18 13:34:04 +0100
commit2624bafca532de66ae1d4976f8c2e99f5f7b250e (patch)
tree4e88b647f398464f695d32bba30adae456a726e2 /pidl/lib/Parse/Pidl
parentfd86c9b6877ab9e416b82d04bc7cfc42af027d74 (diff)
downloadsamba-2624bafca532de66ae1d4976f8c2e99f5f7b250e.tar.gz
samba-2624bafca532de66ae1d4976f8c2e99f5f7b250e.tar.bz2
samba-2624bafca532de66ae1d4976f8c2e99f5f7b250e.zip
pidl:Samba4/Python: remove compiler warnings when using -Wc++
metze
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index a6c2738ddc..1973aae1ec 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -833,7 +833,7 @@ sub ConvertObjectFromPythonData($$$$$$;$)
return;
}
$self->pidl("PY_CHECK_TYPE($ctype_name, $cvar, $fail);");
- $self->assign($target, "py_talloc_get_ptr($cvar)");
+ $self->assign($target, "(".mapTypeName($ctype)." *)py_talloc_get_ptr($cvar)");
return;
}