diff options
-rw-r--r-- | utils/MTP/beastpatcher/Makefile | 4 | ||||
-rw-r--r-- | utils/MTP/beastpatcher/mtp_libmtp.c | 2 |
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 | |||
10 | CROSS= | 10 | CROSS= |
11 | else | 11 | else |
12 | OUTPUT=beastpatcher | 12 | OUTPUT=beastpatcher |
13 | CROSS=i586-mingw32msvc- | 13 | CROSS=i686-w64-mingw32- |
14 | endif | 14 | endif |
15 | endif | 15 | endif |
16 | 16 | ||
17 | ifneq ($(findstring MINGW,$(shell uname)),MINGW) | 17 | ifneq ($(findstring MINGW,$(shell uname)),MINGW) |
18 | LIBS := -lmtp -lusb | 18 | LIBS := -lmtp |
19 | ifdef STATIC | 19 | ifdef STATIC |
20 | LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic | 20 | LIBS := -Wl,-Bstatic $(LIBS) -Wl,-Bdynamic |
21 | endif | 21 | endif |
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 | ||