From 01797c94c184eaacea3e9a4711df4eb5a4805fd0 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 22 Aug 2012 14:30:50 -0400 Subject: avoid gcc compile error; see inline comment --- libertas_uap/uap_debug.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libertas_uap') diff --git a/libertas_uap/uap_debug.c b/libertas_uap/uap_debug.c index e21c4aa..9b05321 100644 --- a/libertas_uap/uap_debug.c +++ b/libertas_uap/uap_debug.c @@ -71,7 +71,19 @@ static struct debug_data items[] = { {"ps_state", item_size(ps_state), 0, item_addr(ps_state), OFFSET_UAP_ADAPTER}, #ifdef DEBUG_LEVEL1 +/* + * XXX: bnewbold: HORRIBLE HACK here, blindly commenting this line out to avoid + * gcc error: + * + * uap_debug.c:77:5: error: initializer element is not constant + * uap_debug.c:77:5: error: (near initialization for ‘items[8].addr’) + * + * Not sure why a pointer to an extern integer is not sufficiently constant; + * don't know what the side-effects of commenting this out may be. + */ +/* {"drvdbg", sizeof(drvdbg), (u32) & drvdbg, 0, 0} +*/ #endif }; -- cgit v1.2.3