summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2021-02-12 23:03:28 +0100
committerCommit Bot <commit-bot@chromium.org>2021-02-24 18:00:33 +0000
commitec935993f233a8b1329757fc5716a5de1b200d00 (patch)
tree1a59a488e8c7b2fc3020898b70e5b84ea6a59796
parent47174f35e65badc908d1aa6f09f5d0dd566a9ab0 (diff)
downloadchrome-ec-ec935993f233a8b1329757fc5716a5de1b200d00.tar.gz
util/iteflash: ftdi_usb_purge_buffers is deprecated
According to http://developer.intra2net.com/mailarchive/html/libftdi/2018/msg00105.html there has been a renaming going on. To support both old and new libftdi disable the deprecation warning (that we then promote to an error). Signed-off-by: Patrick Georgi <pgeorgi@google.com> Change-Id: I1df660cb7e8d8c8a410a8d9ee5e4a45108dad493 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2692690 Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
-rw-r--r--util/iteflash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/iteflash.c b/util/iteflash.c
index 5b1f5b707d..bf87c2dfb7 100644
--- a/util/iteflash.c
+++ b/util/iteflash.c
@@ -5,6 +5,9 @@
* ITE83xx SoC in-system programming tool
*/
+/* remove when ftdi_usb_purge_buffers has been replaced to follow libftdi */
+#define _FTDI_DISABLE_DEPRECATED
+
#include <errno.h>
#include <fcntl.h>
#include <ftdi.h>