Kaydet (Commit) 61b976f1 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

Fix compilation error under gcc of the ctypes module bundled libffi for arm.

A variable was declared below the top of a block and one function was using
a K&R C style function declaration!
...@@ -50,6 +50,8 @@ Core and Builtins ...@@ -50,6 +50,8 @@ Core and Builtins
Library Library
------- -------
- Fix compilation error under gcc of the ctypes module bundled libffi for arm.
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID, - Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
NID, short name and long name. NID, short name and long name.
......
...@@ -221,11 +221,11 @@ void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) ...@@ -221,11 +221,11 @@ void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)
int vfp_struct = (cif->flags == FFI_TYPE_STRUCT_VFP_FLOAT int vfp_struct = (cif->flags == FFI_TYPE_STRUCT_VFP_FLOAT
|| cif->flags == FFI_TYPE_STRUCT_VFP_DOUBLE); || cif->flags == FFI_TYPE_STRUCT_VFP_DOUBLE);
unsigned int temp;
ecif.cif = cif; ecif.cif = cif;
ecif.avalue = avalue; ecif.avalue = avalue;
unsigned int temp;
/* If the return value is a struct and we don't have a return */ /* If the return value is a struct and we don't have a return */
/* value address then we need to make one */ /* value address then we need to make one */
...@@ -278,11 +278,11 @@ void ffi_closure_VFP (ffi_closure *); ...@@ -278,11 +278,11 @@ void ffi_closure_VFP (ffi_closure *);
/* This function is jumped to by the trampoline */ /* This function is jumped to by the trampoline */
unsigned int unsigned int
ffi_closure_SYSV_inner (closure, respp, args, vfp_args) ffi_closure_SYSV_inner(
ffi_closure *closure; ffi_closure *closure,
void **respp; void **respp,
void *args; void *args,
void *vfp_args; void *vfp_args)
{ {
// our various things... // our various things...
ffi_cif *cif; ffi_cif *cif;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment