Commit f7e6701058db78221f293e4a9465de322d26986e

Con Kolivas 2013-08-10T01:11:23

Fix uninit variable warnings.

diff --git a/driver-avalon.c b/driver-avalon.c
index 0f5602c..aec768e 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -652,7 +652,8 @@ static int bitburner_get_core_voltage(struct cgpu_info *avalon)
 
 static bool avalon_detect_one(libusb_device *dev, struct usb_find_devices *found)
 {
-	int baud, miner_count, asic_count, timeout, frequency = 0;
+	int baud, uninitialised_var(miner_count), uninitialised_var(asic_count),
+	    uninitialised_var(timeout), frequency = 0;
 	int this_option_offset = ++option_offset;
 	struct avalon_info *info;
 	struct cgpu_info *avalon;
diff --git a/usbutils.c b/usbutils.c
index e9d71a6..f5c5da2 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1801,7 +1801,7 @@ out_unlock:
 bool usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct usb_find_devices *found_match)
 {
 	struct usb_find_devices *found_use = NULL;
-	int ret;
+	int uninitialised_var(ret);
 	int i;
 
 	for (i = 0; find_dev[i].drv != DRV_LAST; i++) {