2025-11-21 13:09 ftp://ftp.de.debian.org/debian/pool/main/g/glewmx/glewmx_1.13.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --library=opengl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 41 45 elapsed-time: 1.1 1.2 head-timing-info: old-timing-info: head results: glew-1.13.0/auto/src/glew_init_gl.c:20:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glew_init_glx.c:20:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glew_init_wgl.c:28:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [syntaxError] glew-1.13.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [syntaxError] glew-1.13.0/auto/src/glew_str_head.c:13:5: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glew_str_wgl.c:1:5: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glewinfo_gl.c:4:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/auto/src/glewinfo_glx.c:3:0: error: #else without #if [syntaxError] glew-1.13.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [syntaxError] glew-1.13.0/auto/src/glewinfo_wgl.c:1:1: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] glew-1.13.0/build/cmake/testbuild/main.c:15:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLEW_VERSION [valueFlowBailoutIncompleteVar] glew-1.13.0/auto/src/glewinfo_head.c:40:15: style: struct member 'createParams::display' is never used. [unusedStructMember] glew-1.13.0/auto/src/glewinfo_head.c:41:15: style: struct member 'createParams::visual' is never used. [unusedStructMember] glew-1.13.0/auto/src/glewinfo_head.c:43:15: style: struct member 'createParams::major' is never used. [unusedStructMember] glew-1.13.0/auto/src/glewinfo_head.c:43:22: style: struct member 'createParams::minor' is never used. [unusedStructMember] glew-1.13.0/auto/src/glewinfo_head.c:46:15: style: struct member 'createParams::profile' is never used. [unusedStructMember] glew-1.13.0/auto/src/glewinfo_head.c:47:15: style: struct member 'createParams::flags' is never used. [unusedStructMember] glew-1.13.0/src/visualinfo.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] glew-1.13.0/src/visualinfo.c:653:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLX_FBCONFIG_ID [valueFlowBailoutIncompleteVar] glew-1.13.0/src/visualinfo.c:1152:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] glew-1.13.0/auto/src/glew_head.c:224:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/auto/src/glew_head.c:224:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/auto/src/glew_head.c:240:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/auto/src/glew_head.c:240:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/auto/src/glew_head.c:256:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/auto/src/glew_head.c:256:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glewinfo.c:11614:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glewinfo.c:11933:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visual [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glew.c:9277:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_EXTENSIONS [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glew.c:9297:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GL_VERSION [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glew.c:13090:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glXGetCurrentDisplay [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glew.c:13107:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLEW_ERROR_GLX_VERSION_11_ONLY [valueFlowBailoutIncompleteVar] glew-1.13.0/src/glew.c:256:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:256:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:272:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:272:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:288:29: warning: Comparison is wrong. Result of '(*a)+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:288:44: warning: Comparison is wrong. Result of 'b+i' can't be 0 unless there is pointer overflow, and pointer overflow is undefined behaviour. [pointerAdditionResultNotNull] glew-1.13.0/src/glew.c:9341:10: style: Variable 'extEnd' is assigned a value that is never used. [unreadVariable] glew-1.13.0/src/glew.c:13138:10: style: Variable 'extEnd' is assigned a value that is never used. [unreadVariable] diff: 2.18.0 glew-1.13.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [preprocessorErrorDirective] head glew-1.13.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [syntaxError] 2.18.0 glew-1.13.0/auto/src/glew_str_glx.c:7:2: error: #elif without #if [preprocessorErrorDirective] 2.18.0 glew-1.13.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [preprocessorErrorDirective] head glew-1.13.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [syntaxError] 2.18.0 glew-1.13.0/auto/src/glew_str_tail.c:7:2: error: #endif without #if [preprocessorErrorDirective] 2.18.0 glew-1.13.0/auto/src/glewinfo_glx.c:3:0: error: #else without #if [preprocessorErrorDirective] head glew-1.13.0/auto/src/glewinfo_glx.c:3:0: error: #else without #if [syntaxError] 2.18.0 glew-1.13.0/auto/src/glewinfo_glx.c:3:2: error: #else without #if [preprocessorErrorDirective] 2.18.0 glew-1.13.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [preprocessorErrorDirective] head glew-1.13.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [syntaxError] 2.18.0 glew-1.13.0/auto/src/glewinfo_tail.c:3:2: error: #endif without #if [preprocessorErrorDirective] DONE