Wireshark-dev: [Wireshark-dev] Error when compiling extcap/androiddump.c with (released) MSVC 2
From: Anders Broman <[email protected]>
Date: Wed, 5 Aug 2015 09:16:55 +0000

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