Merge pull request #1938 from matt335672/cppcheck_25
Bumped cppcheck version to 2.5 (#1938)
This commit is contained in:
commit
2ed54a8879
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -127,7 +127,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.4
|
CPPCHECK_VER: 2.5
|
||||||
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
|
||||||
|
@ -17,6 +17,8 @@ typedef struct stream
|
|||||||
char *data; /* holds stream data */
|
char *data; /* holds stream data */
|
||||||
char *pos; /* current read/write position */
|
char *pos; /* current read/write position */
|
||||||
int size; /* number of bytes in data */
|
int size; /* number of bytes in data */
|
||||||
|
|
||||||
|
stream() : data(0), pos(0), size(0) {}
|
||||||
} STREAM;
|
} STREAM;
|
||||||
|
|
||||||
#define qstream_new(_s, _size) \
|
#define qstream_new(_s, _size) \
|
||||||
|
Loading…
Reference in New Issue
Block a user