[Bug 211540] 11.0-BETA3+ -r303691 build via amd64-gcc: sys/dev/hptmv/vdevice.h:145:2: error: variably modified '_ArrayTables' at file scope; more
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 5 01:42:16 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211540
Mark Millard <markmi at dsl-only.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|11.0-STABLE |11.0-BETA3
--- Comment #1 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #0)
Now reproduced in trying to build 11.0-BETA4 -r303759. But there is no
11.0-BETA4 Version selection available yet. So use 11.0-BETA3 selection for
now.
The "variably modified '_ArrayTables' at file scope" messages refer to (various
.h files contributing):
#define MAX_VDEVICE_PER_VBUS 8
. . .
#ifndef MAX_ARRAY_PER_VBUS
#define MAX_ARRAY_PER_VBUS (MAX_VDEVICE_PER_VBUS*2) /* worst case */
#endif
. . .
#define ARRAY_VDEV_SIZE ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(RaidArray))
. . .
typedef struct _VBus {
. . .
#ifdef SUPPORT_ARRAY
PVDevice pFreeArrayLink;
BYTE _ArrayTables[MAX_ARRAY_PER_VBUS * ARRAY_VDEV_SIZE];
#endif
. . .
} VBus;
ARRAY_VDEV_SIZE is what is being complained about for its use in typedef struct
_VBus at file scope.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list