mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
Don't use GCC zero-length arrays.
* libguile/frames.c, libguile/objcodes.c, libguile/programs.c, libguile/vm-engine.c, libguile/vm-i-system.c, libguile/vm.c: Use `SCM_C_OBJCODE_BASE ()' instead of accessing the `base' field of `struct scm_objcode'. * libguile/objcodes.h (struct scm_objcode)[base]: Remove.
This commit is contained in:
parent
cd169c5a22
commit
3dbbe28dfd
7 changed files with 36 additions and 20 deletions
|
@ -190,7 +190,7 @@ really_make_boot_program (long nargs)
|
|||
text[1] = (scm_t_uint8)nargs;
|
||||
|
||||
bp = scm_malloc (sizeof (struct scm_objcode) + sizeof (text));
|
||||
memcpy (bp->base, text, sizeof (text));
|
||||
memcpy (SCM_C_OBJCODE_BASE (bp), text, sizeof (text));
|
||||
bp->len = sizeof(text);
|
||||
bp->metalen = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue