Author: Antonio Cuni <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit