2025-11-21 13:07 ftp://ftp.de.debian.org/debian/pool/main/g/glew/glew_2.2.0.orig.tar.xz 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-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 5374cd3 (2025-11-20 15:35:39 +0100) count: 45 51 elapsed-time: 0.9 1.0 head-timing-info: old-timing-info: head results: glew-2.2.0/auto/src/glew_init_egl.c:15:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glew_init_glx.c:16:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glew_init_gl.c:77:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glew_str_egl.c:7:0: error: #elif without #if [syntaxError] glew-2.2.0/auto/src/glew_init_wgl.c:24:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [syntaxError] glew-2.2.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [syntaxError] glew-2.2.0/auto/src/glew_str_head.c:9:5: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glew_str_wgl.c:1:5: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glewinfo_egl.c:3:0: error: #elif without #if [syntaxError] glew-2.2.0/auto/src/glewinfo_gl.c:4:1: error: Unmatched '{'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glewinfo_glx.c:3:0: error: #elif without #if [syntaxError] glew-2.2.0/auto/src/glewinfo_wgl.c:1:1: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] glew-2.2.0/auto/src/glewinfo_head.c:71:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glewExperimental [valueFlowBailoutIncompleteVar] glew-2.2.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [syntaxError] glew-2.2.0/build/cmake/testbuild/main.c:15:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLEW_VERSION [valueFlowBailoutIncompleteVar] glew-2.2.0/auto/src/glewinfo_head.c:35:15: style: struct member 'createParams::display' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:36:15: style: struct member 'createParams::visual' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:38:15: style: struct member 'createParams::major' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:38:22: style: struct member 'createParams::minor' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:41:15: style: struct member 'createParams::profile' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:42:15: style: struct member 'createParams::flags' is never used. [unusedStructMember] glew-2.2.0/auto/src/glewinfo_head.c:45:15: style: struct member 'createParams::experimental' is never used. [unusedStructMember] glew-2.2.0/src/visualinfo.c:118:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] glew-2.2.0/src/visualinfo.c:671:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLX_FBCONFIG_ID [valueFlowBailoutIncompleteVar] glew-2.2.0/src/visualinfo.c:1223:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] glew-2.2.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-2.2.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-2.2.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-2.2.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-2.2.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-2.2.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-2.2.0/src/glewinfo.c:103:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glewExperimental [valueFlowBailoutIncompleteVar] glew-2.2.0/src/glewinfo.c:18456:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] glew-2.2.0/src/glewinfo.c:18950:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable visual [valueFlowBailoutIncompleteVar] glew-2.2.0/src/glew.c:17977:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable getString [valueFlowBailoutIncompleteVar] glew-2.2.0/src/glew.c:22763:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable glXGetCurrentDisplay [valueFlowBailoutIncompleteVar] glew-2.2.0/src/glew.c:22777:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLEW_ERROR_GLX_VERSION_11_ONLY [valueFlowBailoutIncompleteVar] glew-2.2.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-2.2.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-2.2.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-2.2.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-2.2.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-2.2.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-2.2.0/src/glew.c:22811:10: style: Variable 'extEnd' is assigned a value that is never used. [unreadVariable] diff: 2.18.0 glew-2.2.0/auto/src/glew_str_egl.c:7:0: error: #elif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glew_str_egl.c:7:0: error: #elif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glew_str_egl.c:7:2: error: #elif without #if [preprocessorErrorDirective] 2.18.0 glew-2.2.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glew_str_glx.c:7:0: error: #elif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glew_str_glx.c:7:2: error: #elif without #if [preprocessorErrorDirective] 2.18.0 glew-2.2.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glew_str_tail.c:7:0: error: #endif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glew_str_tail.c:7:2: error: #endif without #if [preprocessorErrorDirective] 2.18.0 glew-2.2.0/auto/src/glewinfo_egl.c:3:0: error: #elif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glewinfo_egl.c:3:0: error: #elif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glewinfo_egl.c:3:2: error: #elif without #if [preprocessorErrorDirective] 2.18.0 glew-2.2.0/auto/src/glewinfo_glx.c:3:0: error: #elif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glewinfo_glx.c:3:0: error: #elif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glewinfo_glx.c:3:2: error: #elif without #if [preprocessorErrorDirective] 2.18.0 glew-2.2.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [preprocessorErrorDirective] head glew-2.2.0/auto/src/glewinfo_tail.c:3:0: error: #endif without #if [syntaxError] 2.18.0 glew-2.2.0/auto/src/glewinfo_tail.c:3:2: error: #endif without #if [preprocessorErrorDirective] DONE