Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Nortmann <bernhard.nortmann@web.de>2016-04-18 12:43:36 +0300
committerBernhard Nortmann <bernhard.nortmann@web.de>2016-05-04 23:34:27 +0300
commitc4507cbc8788be4a3bbcafd1dd7a4336e4e629ab (patch)
tree3b9baf1f7a1224fa2716318f9af938ac51e31861
parent2519a2048162f39b8df13bbcdcd7ba46e682c598 (diff)
fel: Avoid -Wunused-variable (iface_detached) on non-Linux platforms
Signed-off-by: Bernhard Nortmann <bernhard.nortmann@web.de>
-rw-r--r--fel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fel.c b/fel.c
index c102345..3e77301 100644
--- a/fel.c
+++ b/fel.c
@@ -1366,7 +1366,9 @@ int main(int argc, char **argv)
bool pflag_active = false; /* -p switch, causing "write" to output progress */
libusb_device_handle *handle;
int busnum = -1, devnum = -1;
+#if defined(__linux__)
int iface_detached = -1;
+#endif
if (argc <= 1) {
printf("Usage: %s [options] command arguments... [command...]\n"