aboutsummaryrefslogtreecommitdiffstats
path: root/libertas_uap/uap_debug.c
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-08-22 14:30:50 -0400
committerbnewbold <bnewbold@robocracy.org>2012-08-22 14:30:50 -0400
commit01797c94c184eaacea3e9a4711df4eb5a4805fd0 (patch)
tree60a75816b9495d4b4b379ca77cc65b140385d7d5 /libertas_uap/uap_debug.c
parent8340edb2d8a24ee88bad3e230b77cbfedf81cff8 (diff)
downloaddreamplug-libertas_uap-01797c94c184eaacea3e9a4711df4eb5a4805fd0.tar.gz
dreamplug-libertas_uap-01797c94c184eaacea3e9a4711df4eb5a4805fd0.zip
avoid gcc compile error; see inline comment
Diffstat (limited to 'libertas_uap/uap_debug.c')
-rw-r--r--libertas_uap/uap_debug.c12
1 files changed, 12 insertions, 0 deletions
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
};