Bump cppcheck version to 2.8
This commit is contained in:
parent
a64573b596
commit
d8669a2998
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -129,7 +129,7 @@ jobs:
|
|||||||
CC: gcc
|
CC: gcc
|
||||||
# This is required to use a version of cppcheck other than that
|
# This is required to use a version of cppcheck other than that
|
||||||
# supplied with the operating system
|
# supplied with the operating system
|
||||||
CPPCHECK_VER: 2.7
|
CPPCHECK_VER: 2.8
|
||||||
CPPCHECK_REPO: https://github.com/danmar/cppcheck.git
|
CPPCHECK_REPO: https://github.com/danmar/cppcheck.git
|
||||||
steps:
|
steps:
|
||||||
# This is currently the only way to get a version into
|
# This is currently the only way to get a version into
|
||||||
|
@ -72,14 +72,18 @@ msg(char *msg1, ...)
|
|||||||
static int
|
static int
|
||||||
show_last_error(void)
|
show_last_error(void)
|
||||||
{
|
{
|
||||||
LPVOID lpMsgBuf;
|
LPVOID lpMsgBuf = NULL;
|
||||||
|
DWORD len;
|
||||||
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
len = FormatMessageA(
|
||||||
NULL, GetLastError(),
|
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
NULL, GetLastError(),
|
||||||
(LPSTR)&lpMsgBuf, 0, NULL);
|
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||||
msg("GetLastError - %s", lpMsgBuf);
|
(LPSTR)&lpMsgBuf, 0, NULL);
|
||||||
LocalFree(lpMsgBuf);
|
if (len > 0)
|
||||||
|
{
|
||||||
|
msg("GetLastError - %s", lpMsgBuf);
|
||||||
|
LocalFree(lpMsgBuf);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user