Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: backtrace: Remove unnecessary (void*) conversions #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libffi/testsuite/libffi.closures/nested_struct12.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main (void)
ffi_type struct_float_type1, struct_float_type2;
ffi_type *retType = &ffi_type_float;
float arg1;
float *arg2 = (float *)malloc(sizeof(stru_Nested_F));
float *arg2 = malloc(sizeof(stru_Nested_F));

struct_float2[0] = &ffi_type_float;
struct_float2[1] = &ffi_type_float;
Expand Down
6 changes: 3 additions & 3 deletions libgfortran/runtime/backtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ has_gfortran_prefix (const char *s)
static void
error_callback (void *data, const char *msg, int errnum)
{
struct mystate *state = (struct mystate *) data;
struct mystate *state = data;
struct iovec iov[5];
#define ERRHDR "\nCould not print backtrace: "

Expand Down Expand Up @@ -114,7 +114,7 @@ error_callback (void *data, const char *msg, int errnum)
static int
simple_callback (void *data, uintptr_t pc)
{
struct mystate *state = (struct mystate *) data;
struct mystate *state = data;
st_printf ("#%d 0x%lx\n", state->frame, (unsigned long) pc);
(state->frame)++;
return 0;
Expand All @@ -124,7 +124,7 @@ static int
full_callback (void *data, uintptr_t pc, const char *filename,
int lineno, const char *function)
{
struct mystate *state = (struct mystate *) data;
struct mystate *state = data;

if (has_gfortran_prefix (function))
return 0;
Expand Down