Wireshark-dev: Re: [Wireshark-dev] Error when compiling extcap/androiddump.c with (released) MS

From: Michal Labedzki <michal.labedzki@xxxxxxxxx>
Date: Wed, 5 Aug 2015 17:37:31 +0200
Hello,

Try this one: https://code.wireshark.org/review/#/c/9876/

On 5 August 2015 at 11:16, Anders Broman <anders.broman@xxxxxxxxxxxx> wrote:

Hi,

I get:

 

androiddump.c

extcap/androiddump.c(736): error C2220: warning treated as error - no 'object' f

ile generated

extcap/androiddump.c(736): warning C4477: 'fprintf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 3 has type 'ssize_t'

extcap/androiddump.c(736): note: to simplify migration, consider the temporary u

se of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(736): note: consider using '%i' in the format string

extcap/androiddump.c(736): note: consider using '%I32i' in the format string

extcap/androiddump.c(786): warning C4477: 'fprintf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 3 has type 'ssize_t'

extcap/androiddump.c(786): note: to simplify migration, consider the temporary u

se of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(786): note: consider using '%i' in the format string

extcap/androiddump.c(786): note: consider using '%I32i' in the format string

extcap/androiddump.c(866): warning C4477: 'fprintf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 3 has type 'ssize_t'

extcap/androiddump.c(866): note: to simplify migration, consider the temporary u

se of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(866): note: consider using '%i' in the format string

extcap/androiddump.c(866): note: consider using '%I32i' in the format string

extcap/androiddump.c(1565): warning C4477: 'printf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 1 has type 'ssize_t'

extcap/androiddump.c(1565): note: to simplify migration, consider the temporary

use of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(1565): note: consider using '%i' in the format string

extcap/androiddump.c(1565): note: consider using '%I32i' in the format string

extcap/androiddump.c(1624): warning C4477: 'printf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 2 has type 'ssize_t'

extcap/androiddump.c(1624): note: to simplify migration, consider the temporary

use of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(1624): note: consider using '%i' in the format string

extcap/androiddump.c(1624): note: consider using '%I32i' in the format string

extcap/androiddump.c(1624): warning C4477: 'printf' : format string '%I64i' requ

ires an argument of type '__int64', but variadic argument 3 has type 'ssize_t'

extcap/androiddump.c(1624): note: to simplify migration, consider the temporary

use of /Wv:18 flag with the version of the compiler with which you used to build

without warnings

extcap/androiddump.c(1624): note: consider using '%i' in the format string

extcap/androiddump.c(1624): note: consider using '%I32i' in the format string

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0

\VC\BIN\amd64\cl.EXE"' : return code '0x2'

Stop.

 

Any ideas on how to fix?

 

Regards

Anders


___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe



--

Pozdrawiam / Best regards
-------------------------------------------------------------------------------------------------------------
Michał Łabędzki, Software Engineer
Tieto Corporation

Product Development Services

http://www.tieto.com / http://www.tieto.pl
---
ASCII: Michal Labedzki
location: Swobodna 1 Street, 50-088 Wrocław, Poland
room: 5.01 (desk next to 5.08)
---
Please note: The information contained in this message may be legally privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorised use, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank You.
---
Please consider the environment before printing this e-mail.
---
Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON: 812023656. Kapitał zakładowy: 4 271500 PLN