Members of cgpu_info for avalon are not meant to be in the union.
diff --git a/miner.h b/miner.h
index 58095e8..819d242 100644
--- a/miner.h
+++ b/miner.h
@@ -426,11 +426,11 @@ struct cgpu_info {
#if defined(USE_ICARUS) || defined(USE_AVALON)
int device_fd;
#endif
+ };
#ifdef USE_AVALON
struct work **works;
int queued;
#endif
- };
#ifdef USE_USBUTILS
struct cg_usb_info usbinfo;
#endif