libftdi Archives

Subject: [PATCH] Fix ftdi_get_library_version function prototype

From: Paul Fertser <fercerpav@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Paul Fertser <fercerpav@xxxxxxxxx>
Date: Mon, 14 Oct 2013 15:26:22 +0400
This fixes /usr/include/libftdi1/ftdi.h:467:12: error: function declaration 
isn't a prototype [-Werror=strict-prototypes]

Reported-by: Drasko DRASKOVIC
Signed-off-by: Paul Fertser <fercerpav@xxxxxxxxx>
---
 src/ftdi.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ftdi.h b/src/ftdi.h
index a0ad8b4..3953039 100644
--- a/src/ftdi.h
+++ b/src/ftdi.h
@@ -464,7 +464,7 @@ extern "C"
     void ftdi_free(struct ftdi_context *ftdi);
     void ftdi_set_usbdev (struct ftdi_context *ftdi, struct 
libusb_device_handle *usbdev);
 
-    struct ftdi_version_info ftdi_get_library_version();
+    struct ftdi_version_info ftdi_get_library_version(void);
 
     int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list 
**devlist,
                           int vendor, int product);
-- 
1.7.10


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread