Skip to content

Commit

Permalink
fix several build warnings in src/embed/* in gcc, g++, and icc
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Dec 13, 2010
1 parent 13686bc commit 16e368d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/embed/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Parrot_api_make_interpreter(Parrot_PMC parent, Parrot_Int flags,
int alt_stacktop;
Parrot_Interp interp_raw;
void *stacktop_ptr = &alt_stacktop;
PMC * iglobals;
const Parrot_Interp parent_raw = PMC_IS_NULL(parent) ? NULL : GET_RAW_INTERP(parent);
interp_raw = allocate_interpreter(parent_raw, flags);
if (args) {
Expand All @@ -77,7 +76,6 @@ Parrot_api_make_interpreter(Parrot_PMC parent, Parrot_Int flags,
interp_raw->hash_seed = args->hash_seed;
}
initialize_interpreter(interp_raw, stacktop_ptr);
iglobals = interp_raw->iglobals;
*interp = VTABLE_get_pmc_keyed_int(
interp_raw, interp_raw->iglobals, (Parrot_Int)IGLOBALS_INTERPRETER);
return !PMC_IS_NULL(*interp);
Expand Down Expand Up @@ -419,6 +417,7 @@ Parrot_api_set_stdhandles(Parrot_PMC interp_pmc, Parrot_Int in,
Parrot_io_set_os_handle(interp, pmc, (PIOHANDLE)err);
dummy = (void *)Parrot_io_stdhandle(interp, PIO_STDERR_FILENO, pmc);
}
UNUSED(dummy);

EMBED_API_CALLOUT(interp_pmc, interp)
}
Expand Down
6 changes: 2 additions & 4 deletions src/embed/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ Parrot_api_pmc_deserialize(Parrot_PMC interp_pmc, Parrot_String fpmc,
ARGOUT(Parrot_PMC * pmc))
{
EMBED_API_CALLIN(interp_pmc, interp)
PMC * const config = Parrot_thaw(interp, fpmc);
Parrot_set_config_hash_pmc(interp, config);
*pmc = Parrot_thaw(interp, fpmc);
EMBED_API_CALLOUT(interp_pmc, interp);
}

Expand All @@ -24,8 +23,7 @@ Parrot_api_pmc_deserialize_bytes(Parrot_PMC interp_pmc,
EMBED_API_CALLIN(interp_pmc, interp)
STRING * const fpmc_str = Parrot_str_new_init(interp, (const char *)fpmc,
length, Parrot_binary_encoding_ptr, PObj_external_FLAG);
PMC * const config = Parrot_thaw(interp, fpmc_str);
Parrot_set_config_hash_pmc(interp, config);
*pmc = Parrot_thaw(interp, fpmc_str);
EMBED_API_CALLOUT(interp_pmc, interp);
}

Expand Down

0 comments on commit 16e368d

Please sign in to comment.