The forward declation in the parameter list for a variable-length array is
another gcc extension. Pass the array as a pointer to blob. See: http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.1/gcc/Variable-Length.html
This commit is contained in:
parent
838d34e828
commit
79fede3354
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: midictl.c,v 1.5 2008/04/28 20:23:47 martin Exp $ */
|
||||
/* $NetBSD: midictl.c,v 1.6 2008/06/24 10:55:48 gmcgarry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -29,7 +29,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: midictl.c,v 1.5 2008/04/28 20:23:47 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: midictl.c,v 1.6 2008/06/24 10:55:48 gmcgarry Exp $");
|
||||
|
||||
/*
|
||||
* See midictl.h for an overview of the purpose and use of this module.
|
||||
|
@ -532,7 +532,7 @@ struct midictl_store {
|
|||
};
|
||||
|
||||
static uint32_t store_idx(uint32_t lgcapacity,
|
||||
uint64_t table[static 1<<lgcapacity],
|
||||
uint64_t *table,
|
||||
uint64_t key, uint64_t mask);
|
||||
static void store_rehash(midictl_store *s);
|
||||
|
||||
|
@ -637,7 +637,7 @@ store_update(midictl_store *s, class c, uint_fast8_t chan,
|
|||
}
|
||||
|
||||
static uint32_t
|
||||
store_idx(uint32_t lgcapacity, uint64_t table[static 1<<lgcapacity],
|
||||
store_idx(uint32_t lgcapacity, uint64_t *table,
|
||||
uint64_t key, uint64_t mask)
|
||||
{
|
||||
uint32_t val;
|
||||
|
|
Loading…
Reference in New Issue