diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-11-15 05:19:14 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-11-15 05:19:14 +0000 |
commit | 66a43d2a7a239e7ccbfb299d665282d737679c82 (patch) | |
tree | 455763d5cd3a3f3e573c604404b8b4045dcda183 /src/lib/embryo/embryo_amx.c | |
parent | dc0946e205944950fe8c24704137697593274838 (diff) |
more warn-- in efl tree.
SVN revision: 79314
Diffstat (limited to '')
-rw-r--r-- | src/lib/embryo/embryo_amx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/embryo/embryo_amx.c b/src/lib/embryo/embryo_amx.c index 13ef31b006..d4afb508a7 100644 --- a/src/lib/embryo/embryo_amx.c +++ b/src/lib/embryo/embryo_amx.c | |||
@@ -115,7 +115,6 @@ _embryo_func_get(Embryo_Program *ep, int idx, char *funcname) | |||
115 | static int | 115 | static int |
116 | _embryo_var_get(Embryo_Program *ep, int idx, char *varname, Embryo_Cell *ep_addr) | 116 | _embryo_var_get(Embryo_Program *ep, int idx, char *varname, Embryo_Cell *ep_addr) |
117 | { | 117 | { |
118 | |||
119 | Embryo_Header *hdr; | 118 | Embryo_Header *hdr; |
120 | Embryo_Func_Stub *var; | 119 | Embryo_Func_Stub *var; |
121 | 120 | ||
@@ -207,6 +206,8 @@ _embryo_program_init(Embryo_Program *ep, void *code) | |||
207 | #endif | 206 | #endif |
208 | ep->flags = EMBRYO_FLAG_RELOC; | 207 | ep->flags = EMBRYO_FLAG_RELOC; |
209 | 208 | ||
209 | #ifdef WORDS_BIGENDIAN | ||
210 | /* until we do more... this is only used for bigendian */ | ||
210 | { | 211 | { |
211 | Embryo_Cell cip, code_size, cip_end; | 212 | Embryo_Cell cip, code_size, cip_end; |
212 | Embryo_Cell *code; | 213 | Embryo_Cell *code; |
@@ -222,9 +223,10 @@ _embryo_program_init(Embryo_Program *ep, void *code) | |||
222 | #ifdef WORDS_BIGENDIAN | 223 | #ifdef WORDS_BIGENDIAN |
223 | embryo_swap_32(&(code[cip])); | 224 | embryo_swap_32(&(code[cip])); |
224 | #endif | 225 | #endif |
225 | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | #endif | ||
229 | |||
228 | /* init native api for handling floating point - default in embryo */ | 230 | /* init native api for handling floating point - default in embryo */ |
229 | _embryo_args_init(ep); | 231 | _embryo_args_init(ep); |
230 | _embryo_fp_init(ep); | 232 | _embryo_fp_init(ep); |
@@ -734,11 +736,9 @@ embryo_data_address_get(Embryo_Program *ep, Embryo_Cell addr) | |||
734 | EAPI Embryo_Cell | 736 | EAPI Embryo_Cell |
735 | embryo_data_heap_push(Embryo_Program *ep, int cells) | 737 | embryo_data_heap_push(Embryo_Program *ep, int cells) |
736 | { | 738 | { |
737 | Embryo_Header *hdr; | ||
738 | Embryo_Cell addr; | 739 | Embryo_Cell addr; |
739 | 740 | ||
740 | if ((!ep) || (!ep->base)) return EMBRYO_CELL_NONE; | 741 | if ((!ep) || (!ep->base)) return EMBRYO_CELL_NONE; |
741 | hdr = (Embryo_Header *)ep->base; | ||
742 | if (ep->stk - ep->hea - (cells * sizeof(Embryo_Cell)) < STKMARGIN) | 742 | if (ep->stk - ep->hea - (cells * sizeof(Embryo_Cell)) < STKMARGIN) |
743 | return EMBRYO_CELL_NONE; | 743 | return EMBRYO_CELL_NONE; |
744 | addr = ep->hea; | 744 | addr = ep->hea; |