[pypy-commit] pypy hpy: silence a gcc warning
antocuni
pypy.commits at gmail.com
Thu Nov 21 12:39:09 EST 2019
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: hpy
Changeset: r98132:b4cd0dba403c
Date: 2019-11-21 18:27 +0100
http://bitbucket.org/pypy/pypy/changeset/b4cd0dba403c/
Log: silence a gcc warning
diff --git a/pypy/module/hpy_universal/state.py b/pypy/module/hpy_universal/state.py
--- a/pypy/module/hpy_universal/state.py
+++ b/pypy/module/hpy_universal/state.py
@@ -77,4 +77,5 @@
funcptr = interp_hpy.HPyErr_SetString.get_llhelper(space)
self.ctx.c_ctx_Err_SetString = rffi.cast(rffi.VOIDP, funcptr)
#
- self.ctx.c_ctx_Arg_Parse = llapi.ctx_Arg_Parse
+ # the cast is not strictly necessary but silences a gcc warning
+ self.ctx.c_ctx_Arg_Parse = rffi.cast(rffi.VOIDP, llapi.ctx_Arg_Parse)
More information about the pypy-commit
mailing list