Hi Toralf,
For which OS are you running cppchek? I ask because this item is OS-dependent:
> [clientgui/browser.cpp:749]: (warning) %I64d in format string (no. 1)
> requires '__int64 *' but the argument type is 'long *'.
But the referenced code was:
> #ifdef _WIN32
> "%I64d",
> #else
> "%ld",
> #endif
> &httponly
Cheers,
--Charlie
On Mar 19, 2014, at 2:14 PM, Toralf Förster wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Running it against latest git tree brought up few things where at least these
> among them IMO are worth to be checked :
>
> [clientgui/browser.cpp:749]: (warning) %I64d in format string (no. 1)
> requires '__int64 *' but the argument type is 'long *'.
> [db/boinc_db.cpp:61]: (error) Using 'memset' on struct that contains a
> 'std::vector'.
> [dcapi/common/cfg-client.c:115]: (error) Uninitialized variable: tmp
> [lib/mac/QMachOImageList.c:364]: (error) Uninitialized variable: elemCount
> [lib/mac/QMachOImageList.c:365]: (error) Uninitialized variable: elemSize
> [lib/procinfo_mac.cpp:119]: (warning) %ld in format string (no. 5) requires
> 'long *' but the argument type is 'unsigned long *'.
> [samples/nvcuda/cuda.cpp:114]: (warning) %lf in format string (no. 1)
> requires 'double *' but the argument type is '$float *'.
> [sched/target_batch.cpp:134]: (error) Width 256 given in format string (no.
> 1) is larger than destination buffer 'batch_str[256]', use %255s to prevent
> overflowing it.
> [win_build/installerv2/redist/Windows/src/boinccas/password.cpp:120]: (error)
> Mismatching allocation and deallocation: pTRandomPwd
> [zip/zip/unix/z_unix.c:760]: (error) mismatching number of '(' and ')' in
> this line: defined(__NETBSD__))
>
>
> - --
> MfG/Sincerely
> Toralf Förster
> pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iF4EAREIAAYFAlMqCJoACgkQxOrN3gB26U6o5wD+JrOOrExbij/4VIEFU6M8m312
> ZL+PK8vlJ6n1H47sfzAA/2g8x7OVykorTiH62bqdQykAmQXiiM77FWxtN47kMfid
> =82fY
> -----END PGP SIGNATURE-----
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.
>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.