summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/MTP/beastpatcher/Makefile4
-rw-r--r--utils/MTP/beastpatcher/mtp_libmtp.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/utils/MTP/beastpatcher/Makefile b/utils/MTP/beastpatcher/Makefile
index 8be8c39d49..74cc46bf44 100644
--- a/utils/MTP/beastpatcher/Makefile
+++ b/utils/MTP/beastpatcher/Makefile
@@ -10,12 +10,12 @@ OUTPUT=beastpatcher.exe
10CROSS= 10CROSS=
11else 11else
12OUTPUT=beastpatcher 12OUTPUT=beastpatcher
13CROSS=i586-mingw32msvc- 13CROSS=i686-w64-mingw32-
14endif 14endif
15endif 15endif
16 16
17ifneq ($(findstring MINGW,$(shell uname)),MINGW) 17ifneq ($(findstring MINGW,$(shell uname)),MINGW)
18LIBS := -lmtp -lusb 18LIBS := -lmtp
19ifdef STATIC 19ifdef STATIC
20LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic 20LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic
21endif 21endif
diff --git a/utils/MTP/beastpatcher/mtp_libmtp.c b/utils/MTP/beastpatcher/mtp_libmtp.c
index 67b009b923..7377c520ea 100644
--- a/utils/MTP/beastpatcher/mtp_libmtp.c
+++ b/utils/MTP/beastpatcher/mtp_libmtp.c
@@ -123,6 +123,8 @@ int mtp_send_firmware(struct mtp_info_t* mtp_info, unsigned char* fwbuf,
123 size_t n; 123 size_t n;
124 FILE* fwfile; 124 FILE* fwfile;
125 125
126 (void) ret; /* suppress a set but not used warning */
127
126 /* Open a temporary file - this will be automatically deleted when closed */ 128 /* Open a temporary file - this will be automatically deleted when closed */
127 fwfile = tmpfile(); 129 fwfile = tmpfile();
128 130