2022-06-29 22:13 ftp://ftp.de.debian.org/debian/pool/main/n/nbdkit/nbdkit_1.30.6.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j10 platform: Linux-5.18.6-1-MANJARO-x86_64-with-glibc2.35 python: 3.10.5 client-version: 1.3.25 compiler: g++ (GCC) 12.1.0 cppcheck: head 2.8 head-info: 06b408e (2022-06-29 13:43:17 +0200) count: 445 445 elapsed-time: 2.3 2.6 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: nbdkit-1.30.6/common/allocators/malloc.c:176:17: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/bitmap/test-bitmap.c:111:12: style: Condition 'i!=-1' is always true [knownConditionTrueFalse] nbdkit-1.30.6/common/replacements/fsync.c:72:0: error: #error "no replacement fsync is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/regions/regions.c:46:24: style:inconclusive: Function 'init_regions' argument 1 names different: declaration 'regions' definition 'rs'. [funcArgNamesDifferent] nbdkit-1.30.6/common/regions/regions.h:78:36: note: Function 'init_regions' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:46:24: note: Function 'init_regions' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:52:31: style:inconclusive: Function 'free_regions' argument 1 names different: declaration 'regions' definition 'rs'. [funcArgNamesDifferent] nbdkit-1.30.6/common/regions/regions.h:80:36: note: Function 'free_regions' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:52:31: note: Function 'free_regions' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:74:29: style:inconclusive: Function 'find_region' argument 1 names different: declaration 'regions' definition 'rs'. [funcArgNamesDifferent] nbdkit-1.30.6/common/regions/regions.h:103:57: note: Function 'find_region' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:74:29: note: Function 'find_region' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:160:29: style:inconclusive: Function 'append_region_len' argument 1 names different: declaration 'regions' definition 'rs'. [funcArgNamesDifferent] nbdkit-1.30.6/common/regions/regions.h:121:40: note: Function 'append_region_len' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:160:29: note: Function 'append_region_len' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:176:29: style:inconclusive: Function 'append_region_end' argument 1 names different: declaration 'regions' definition 'rs'. [funcArgNamesDifferent] nbdkit-1.30.6/common/regions/regions.h:130:40: note: Function 'append_region_end' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/regions/regions.c:176:29: note: Function 'append_region_end' argument 1 names different: declaration 'regions' definition 'rs'. nbdkit-1.30.6/common/replacements/getline.c:41:17: style:inconclusive: Function 'getline' argument 1 names different: declaration 'lineptr' definition 'buf'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:43:25: note: Function 'getline' argument 1 names different: declaration 'lineptr' definition 'buf'. nbdkit-1.30.6/common/replacements/getline.c:41:17: note: Function 'getline' argument 1 names different: declaration 'lineptr' definition 'buf'. nbdkit-1.30.6/common/replacements/getline.c:41:30: style:inconclusive: Function 'getline' argument 2 names different: declaration 'n' definition 'bufsiz'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:43:42: note: Function 'getline' argument 2 names different: declaration 'n' definition 'bufsiz'. nbdkit-1.30.6/common/replacements/getline.c:41:30: note: Function 'getline' argument 2 names different: declaration 'n' definition 'bufsiz'. nbdkit-1.30.6/common/replacements/getline.c:41:44: style:inconclusive: Function 'getline' argument 3 names different: declaration 'stream' definition 'fp'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:43:51: note: Function 'getline' argument 3 names different: declaration 'stream' definition 'fp'. nbdkit-1.30.6/common/replacements/getline.c:41:44: note: Function 'getline' argument 3 names different: declaration 'stream' definition 'fp'. nbdkit-1.30.6/common/allocators/sparse.c:273:19: portability: 'page' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/allocators/sparse.c:317:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/allocators/sparse.c:343:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/replacements/openlog.c:58:0: error: #error "no replacement openlog is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/poll.c:117:0: error: #error "no replacement poll is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/getdelim.c:43:18: style:inconclusive: Function 'getdelim' argument 1 names different: declaration 'lineptr' definition 'buf'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:44:26: note: Function 'getdelim' argument 1 names different: declaration 'lineptr' definition 'buf'. nbdkit-1.30.6/common/replacements/getdelim.c:43:18: note: Function 'getdelim' argument 1 names different: declaration 'lineptr' definition 'buf'. nbdkit-1.30.6/common/replacements/getdelim.c:43:31: style:inconclusive: Function 'getdelim' argument 2 names different: declaration 'n' definition 'bufsiz'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:44:43: note: Function 'getdelim' argument 2 names different: declaration 'n' definition 'bufsiz'. nbdkit-1.30.6/common/replacements/getdelim.c:43:31: note: Function 'getdelim' argument 2 names different: declaration 'n' definition 'bufsiz'. nbdkit-1.30.6/common/replacements/getdelim.c:43:43: style:inconclusive: Function 'getdelim' argument 3 names different: declaration 'delim' definition 'delimiter'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:44:50: note: Function 'getdelim' argument 3 names different: declaration 'delim' definition 'delimiter'. nbdkit-1.30.6/common/replacements/getdelim.c:43:43: note: Function 'getdelim' argument 3 names different: declaration 'delim' definition 'delimiter'. nbdkit-1.30.6/common/replacements/getdelim.c:43:60: style:inconclusive: Function 'getdelim' argument 4 names different: declaration 'stream' definition 'fp'. [funcArgNamesDifferent] nbdkit-1.30.6/common/replacements/getline.h:44:63: note: Function 'getdelim' argument 4 names different: declaration 'stream' definition 'fp'. nbdkit-1.30.6/common/replacements/getdelim.c:43:60: note: Function 'getdelim' argument 4 names different: declaration 'stream' definition 'fp'. nbdkit-1.30.6/common/replacements/open_memstream.c:147:0: error: #error "no replacement open_memstream is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/posix_memalign.c:70:0: error: #error "no replacement posix_memalign() is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/pwrite.c:82:0: error: #error "no replacement pwrite is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/pread.c:84:0: error: #error "no replacement pread is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/realpath.c:77:0: error: #error "no replacement realpath is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/sysconf.c:65:0: error: #error "no replacement sysconf() is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/syslog.c:58:0: error: #error "no replacement syslog is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/common/replacements/vsyslog.c:70:0: error: #error "no replacement vsyslog is available on this platform" [preprocessorErrorDirective] nbdkit-1.30.6/filters/cache/blk.c:126:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nbdkit-1.30.6/filters/blocksize-policy/policy.c:129:43: style: Condition '(config_maximum%config_maximum)!=0' is always false [knownConditionTrueFalse] nbdkit-1.30.6/filters/blocksize-policy/policy.c:129:25: style: Same expression on both sides of '%'. [duplicateExpression] nbdkit-1.30.6/filters/cache/blk.c:378:30: style: Variable 'tail' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/ddrescue/ddrescue.c:50:11: style: struct member 'range::start' is never used. [unusedStructMember] nbdkit-1.30.6/filters/ddrescue/ddrescue.c:51:11: style: struct member 'range::end' is never used. [unusedStructMember] nbdkit-1.30.6/filters/ddrescue/ddrescue.c:52:11: style: struct member 'range::size' is never used. [unusedStructMember] nbdkit-1.30.6/filters/ddrescue/ddrescue.c:53:8: style: struct member 'range::status' is never used. [unusedStructMember] nbdkit-1.30.6/filters/ddrescue/ddrescue.c:58:7: style: struct member 'mapfile::ranges_count' is never used. [unusedStructMember] nbdkit-1.30.6/filters/cache/cache.c:416:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] nbdkit-1.30.6/filters/cache/cache.c:400:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cache/cache.c:414:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cache/cache.c:481:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cache/cache.c:494:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cache/cache.c:402:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:416:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/blk.c:150:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nbdkit-1.30.6/filters/cache/cache.c:483:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:496:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:572:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:587:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:710:10: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cache/cache.c:723:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:332:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] nbdkit-1.30.6/filters/exitwhen/exitwhen.c:217:8: style: Unused variable: c [unusedVariable] nbdkit-1.30.6/filters/cow/cow.c:317:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/ext2/io.c:388:22: style: Condition 'data->offset<0' is always false [knownConditionTrueFalse] nbdkit-1.30.6/filters/ext2/io.c:387:20: note: Assignment 'data->offset=tmp', assigned value is greater than -1 nbdkit-1.30.6/filters/ext2/io.c:388:22: note: Condition 'data->offset<0' is always false nbdkit-1.30.6/filters/cow/cow.c:330:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cow/cow.c:388:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/cow/cow.c:400:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/ext2/io.c:162:51: style:inconclusive: Function 'nbdkit_io_decode' argument 2 names different: declaration 'out' definition 'next'. [funcArgNamesDifferent] nbdkit-1.30.6/filters/ext2/io.h:45:61: note: Function 'nbdkit_io_decode' argument 2 names different: declaration 'out' definition 'next'. nbdkit-1.30.6/filters/ext2/io.c:162:51: note: Function 'nbdkit_io_decode' argument 2 names different: declaration 'out' definition 'next'. nbdkit-1.30.6/filters/cow/cow.c:319:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:332:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:390:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:402:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:469:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:485:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:545:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:556:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:625:10: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/cow/cow.c:637:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/filters/ext2/ext2.c:438:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/ext2/ext2.c:471:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/exportname/exportname.c:267:3: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] nbdkit-1.30.6/filters/gzip/gzip.c:156:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] nbdkit-1.30.6/filters/gzip/gzip.c:119:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/gzip/gzip.c:355:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/include/test-checked-overflow.c:90:3: style: Unused variable: _overflow0 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:90:3: style: Unused variable: _tmp1 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:90:3: style: Unused variable: _overflow9 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:90:3: style: Unused variable: _tmp10 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:91:3: style: Unused variable: _overflow18 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:91:3: style: Unused variable: _tmp19 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:91:3: style: Unused variable: _overflow27 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:91:3: style: Unused variable: _tmp28 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:92:3: style: Unused variable: _overflow36 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:92:3: style: Unused variable: _tmp37 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:92:3: style: Unused variable: _overflow45 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:92:3: style: Unused variable: _tmp46 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:93:3: style: Unused variable: _overflow54 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:93:3: style: Unused variable: _tmp55 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:93:3: style: Unused variable: _overflow63 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:93:3: style: Unused variable: _tmp64 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:94:3: style: Unused variable: _overflow72 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:94:3: style: Unused variable: _tmp73 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:94:3: style: Unused variable: _overflow81 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:94:3: style: Unused variable: _tmp82 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:95:3: style: Unused variable: _overflow90 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:95:3: style: Unused variable: _tmp91 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:95:3: style: Unused variable: _overflow99 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:95:3: style: Unused variable: _tmp100 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:98:3: style: Unused variable: _overflow108 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:98:3: style: Unused variable: _tmp109 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:98:3: style: Unused variable: _overflow117 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:98:3: style: Unused variable: _tmp118 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:99:3: style: Unused variable: _overflow126 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:99:3: style: Unused variable: _tmp127 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:99:3: style: Unused variable: _overflow135 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:99:3: style: Unused variable: _tmp136 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:100:3: style: Unused variable: _overflow144 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:100:3: style: Unused variable: _tmp145 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:100:3: style: Unused variable: _overflow153 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:100:3: style: Unused variable: _tmp154 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:101:3: style: Unused variable: _overflow162 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:101:3: style: Unused variable: _tmp163 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:101:3: style: Unused variable: _overflow171 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:101:3: style: Unused variable: _tmp172 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:102:3: style: Unused variable: _overflow180 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:102:3: style: Unused variable: _tmp181 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:102:3: style: Unused variable: _overflow189 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:102:3: style: Unused variable: _tmp190 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:103:3: style: Unused variable: _overflow198 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:103:3: style: Unused variable: _tmp199 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:103:3: style: Unused variable: _overflow207 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:103:3: style: Unused variable: _tmp208 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:108:3: style: Unused variable: _overflow216 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:108:3: style: Unused variable: _tmp217 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:108:3: style: Unused variable: _overflow225 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:108:3: style: Unused variable: _tmp226 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:109:3: style: Unused variable: _overflow234 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:109:3: style: Unused variable: _tmp235 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:109:3: style: Unused variable: _overflow243 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:109:3: style: Unused variable: _tmp244 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:110:3: style: Unused variable: _overflow252 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:110:3: style: Unused variable: _tmp253 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:110:3: style: Unused variable: _overflow261 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:110:3: style: Unused variable: _tmp262 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:111:3: style: Unused variable: _overflow270 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:111:3: style: Unused variable: _tmp271 [unusedVariable] nbdkit-1.30.6/filters/readahead/readahead.c:177:11: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/include/test-checked-overflow.c:111:3: style: Unused variable: _overflow279 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:111:3: style: Unused variable: _tmp280 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:112:3: style: Unused variable: _overflow288 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:112:3: style: Unused variable: _tmp289 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:112:3: style: Unused variable: _overflow297 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:112:3: style: Unused variable: _tmp298 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:113:3: style: Unused variable: _overflow306 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:113:3: style: Unused variable: _tmp307 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:113:3: style: Unused variable: _overflow315 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:113:3: style: Unused variable: _tmp316 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:116:3: style: Unused variable: _overflow324 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:116:3: style: Unused variable: _tmp325 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:116:3: style: Unused variable: _overflow333 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:116:3: style: Unused variable: _tmp334 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:117:3: style: Unused variable: _overflow342 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:117:3: style: Unused variable: _tmp343 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:117:3: style: Unused variable: _overflow351 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:117:3: style: Unused variable: _tmp352 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:118:3: style: Unused variable: _overflow360 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:118:3: style: Unused variable: _tmp361 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:118:3: style: Unused variable: _overflow369 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:118:3: style: Unused variable: _tmp370 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:119:3: style: Unused variable: _overflow378 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:119:3: style: Unused variable: _tmp379 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:119:3: style: Unused variable: _overflow387 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:119:3: style: Unused variable: _tmp388 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:120:3: style: Unused variable: _overflow396 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:120:3: style: Unused variable: _tmp397 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:120:3: style: Unused variable: _overflow405 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:120:3: style: Unused variable: _tmp406 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:121:3: style: Unused variable: _overflow414 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:121:3: style: Unused variable: _tmp415 [unusedVariable] nbdkit-1.30.6/filters/protect/protect.c:310:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/common/include/test-checked-overflow.c:121:3: style: Unused variable: _overflow423 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:121:3: style: Unused variable: _tmp424 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:124:3: style: Unused variable: _overflow432 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:124:3: style: Unused variable: _tmp433 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:124:3: style: Unused variable: _overflow441 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:124:3: style: Unused variable: _tmp442 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:125:3: style: Unused variable: _overflow450 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:125:3: style: Unused variable: _tmp451 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:125:3: style: Unused variable: _overflow459 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:125:3: style: Unused variable: _tmp460 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:126:3: style: Unused variable: _overflow468 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:126:3: style: Unused variable: _tmp469 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:126:3: style: Unused variable: _overflow477 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:126:3: style: Unused variable: _tmp478 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:127:3: style: Unused variable: _overflow486 [unusedVariable] nbdkit-1.30.6/filters/multi-conn/multi-conn.c:245:35: style: Parameter 'next' can be declared as pointer to const [constParameter] nbdkit-1.30.6/common/include/test-checked-overflow.c:127:3: style: Unused variable: _tmp487 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:127:3: style: Unused variable: _overflow495 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:127:3: style: Unused variable: _tmp496 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:128:3: style: Unused variable: _overflow504 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:128:3: style: Unused variable: _tmp505 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:128:3: style: Unused variable: _overflow513 [unusedVariable] nbdkit-1.30.6/filters/ip/ip.c:193:11: style: Variable 'addr[n]' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:128:3: style: Unused variable: _tmp514 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:129:3: style: Unused variable: _overflow522 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:129:3: style: Unused variable: _tmp523 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:129:3: style: Unused variable: _overflow531 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:129:3: style: Unused variable: _tmp532 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:132:3: style: Unused variable: _overflow540 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:132:3: style: Unused variable: _tmp541 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:132:3: style: Unused variable: _overflow549 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:132:3: style: Unused variable: _tmp550 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:133:3: style: Unused variable: _overflow558 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:133:3: style: Unused variable: _tmp559 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:133:3: style: Unused variable: _overflow567 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:133:3: style: Unused variable: _tmp568 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:134:3: style: Unused variable: _overflow576 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:134:3: style: Unused variable: _tmp577 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:134:3: style: Unused variable: _overflow585 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:134:3: style: Unused variable: _tmp586 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:135:3: style: Unused variable: _overflow594 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:135:3: style: Unused variable: _tmp595 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:135:3: style: Unused variable: _overflow603 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:135:3: style: Unused variable: _tmp604 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:136:3: style: Unused variable: _overflow612 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:136:3: style: Unused variable: _tmp613 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:136:3: style: Unused variable: _overflow621 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:136:3: style: Unused variable: _tmp622 [unusedVariable] nbdkit-1.30.6/filters/rate/rate.c:109:14: style: Condition 'rate==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/common/include/test-checked-overflow.c:137:3: style: Unused variable: _overflow630 [unusedVariable] nbdkit-1.30.6/filters/rate/rate.c:123:25: style: Condition 'connection_rate==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/common/include/test-checked-overflow.c:137:3: style: Unused variable: _tmp631 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:137:3: style: Unused variable: _overflow639 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:137:3: style: Unused variable: _tmp640 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:154:14: style: Unused variable: _overflow648 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:154:14: style: Unused variable: _tmp649 [unusedVariable] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:94:3: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] nbdkit-1.30.6/common/include/test-checked-overflow.c:158:14: style: Unused variable: _overflow657 [unusedVariable] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:56:5: warning:inconclusive: The buffer 'message' may not be null-terminated after the call to strncpy(). [terminateStrncpy] nbdkit-1.30.6/common/include/test-checked-overflow.c:158:14: style: Unused variable: _tmp658 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:162:14: style: Unused variable: _overflow666 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:162:14: style: Unused variable: _tmp667 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:166:14: style: Unused variable: _overflow675 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:166:14: style: Unused variable: _tmp676 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:170:14: style: Unused variable: _overflow684 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:170:14: style: Unused variable: _tmp685 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:172:14: style: Unused variable: _overflow693 [unusedVariable] nbdkit-1.30.6/common/include/test-checked-overflow.c:172:14: style: Unused variable: _tmp694 [unusedVariable] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:129:59: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:138:30: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:147:32: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:161:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:170:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:179:35: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:188:33: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:197:36: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:206:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:215:27: style: Parameter 'handle' can be declared as pointer to const [constParameter] nbdkit-1.30.6/filters/xz/xz.c:254:7: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/truncate/truncate.c:252:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/filters/truncate/truncate.c:281:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/cdi/cdi.c:242:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/curl/scripts.c:216:48: style: Condition '(len=getline(&line,&linelen,fp))!=-1' is always true [knownConditionTrueFalse] nbdkit-1.30.6/plugins/curl/scripts.c:333:51: style: Unsigned expression 'len=getline(&line,&linelen,fp)' can't be negative so it is unnecessary to test it. [unsignedPositive] nbdkit-1.30.6/plugins/cc/cc.c:60:32: style: struct member 'key_value::key' is never used. [unusedStructMember] nbdkit-1.30.6/plugins/cc/cc.c:60:38: style: struct member 'key_value::value' is never used. [unusedStructMember] nbdkit-1.30.6/plugins/cc/cc.c:245:14: style: Variable 'error' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/plugins/example2/winexample2.c:39:0: error: #error "build error: winexample2.c should only be used on Windows" [preprocessorErrorDirective] nbdkit-1.30.6/plugins/example2/example2.c:139:5: error: Memory leak: h.fd [memleak] nbdkit-1.30.6/plugins/example2/example2.c:205:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/file/winfile.c:36:0: error: #error "build error: file.c should be used on Unix-like platforms" [preprocessorErrorDirective] nbdkit-1.30.6/filters/xz/xzfile.c:354:30: style:inconclusive: Function 'xzfile_read_block' argument 6 names different: declaration 'start' definition 'start_rtn'. [funcArgNamesDifferent] nbdkit-1.30.6/filters/xz/xzfile.h:68:43: note: Function 'xzfile_read_block' argument 6 names different: declaration 'start' definition 'start_rtn'. nbdkit-1.30.6/filters/xz/xzfile.c:354:30: note: Function 'xzfile_read_block' argument 6 names different: declaration 'start' definition 'start_rtn'. nbdkit-1.30.6/filters/xz/xzfile.c:354:51: style:inconclusive: Function 'xzfile_read_block' argument 7 names different: declaration 'size' definition 'size_rtn'. [funcArgNamesDifferent] nbdkit-1.30.6/filters/xz/xzfile.h:68:60: note: Function 'xzfile_read_block' argument 7 names different: declaration 'size' definition 'size_rtn'. nbdkit-1.30.6/filters/xz/xzfile.c:354:51: note: Function 'xzfile_read_block' argument 7 names different: declaration 'size' definition 'size_rtn'. nbdkit-1.30.6/plugins/example3/example3.c:121:5: error: Memory leak: h.fd [memleak] nbdkit-1.30.6/plugins/example3/example3.c:179:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/example3/example3.c:200:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/floppy/floppy.c:207:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/file/file.c:338:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] nbdkit-1.30.6/plugins/file/file.c:347:11: style: Condition 'r<0' is always true [knownConditionTrueFalse] nbdkit-1.30.6/plugins/file/file.c:339:14: note: Assignment 'r=-1', assigned value is -1 nbdkit-1.30.6/plugins/file/file.c:347:11: note: Condition 'r<0' is always true nbdkit-1.30.6/plugins/file/file.c:433:5: error: Memory leak: h.fd [memleak] nbdkit-1.30.6/plugins/file/file.c:802:2: style: Label 'out' is not used. [unusedLabel] nbdkit-1.30.6/plugins/file/file.c:633:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/file/file.c:665:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/file/file.c:699:20: style: Variable 'h' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/plugins/file/file.c:700:7: style: Unused variable: r [unusedVariable] nbdkit-1.30.6/plugins/iso/iso.c:241:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/info/info.c:454:24: portability: 'h->data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/floppy/virtual-floppy.c:296:26: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] nbdkit-1.30.6/plugins/libvirt/libvirt-plugin.c:199:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/linuxdisk/linuxdisk.c:220:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/guestfs/guestfs-plugin.c:531:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/guestfs/guestfs-plugin.c:561:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/ondemand/ondemand.c:207:26: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] nbdkit-1.30.6/plugins/ondemand/ondemand.c:535:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/ondemand/ondemand.c:571:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/partitioning/partitioning.c:354:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/partitioning/partitioning.c:408:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/data/format.c:1604:40: warning: The address of local variable 'root' might be accessed at non-zero index. [objectIndex] nbdkit-1.30.6/plugins/data/format.c:1600:16: note: Address of variable taken here. nbdkit-1.30.6/plugins/data/format.c:1604:40: note: The address of local variable 'root' might be accessed at non-zero index. nbdkit-1.30.6/plugins/ruby/ruby.c:104:67: style: Parameter 'argv' can be declared as pointer to const [constParameter] nbdkit-1.30.6/plugins/split/split.c:277:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/split/split.c:306:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/sparse-random/sparse-random.c:110:19: style: Checking if unsigned expression 'runlength' is less than zero. [unsignedLessThanZero] nbdkit-1.30.6/plugins/sparse-random/sparse-random.c:338:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/sparse-random/sparse-random.c:348:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/sparse-random/sparse-random.c:397:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/sparse-random/sparse-random.c:418:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/tmpdisk/tmpdisk.c:400:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/tmpdisk/tmpdisk.c:422:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/plugins/sh/methods.c:303:36: style:inconclusive: Function 'sh_list_exports' argument 2 names different: declaration 'default_only' definition 'is_tls'. [funcArgNamesDifferent] nbdkit-1.30.6/plugins/sh/methods.h:47:47: note: Function 'sh_list_exports' argument 2 names different: declaration 'default_only' definition 'is_tls'. nbdkit-1.30.6/plugins/sh/methods.c:303:36: note: Function 'sh_list_exports' argument 2 names different: declaration 'default_only' definition 'is_tls'. nbdkit-1.30.6/plugins/data/format.c:1873:5: error: Resource leak: fp [resourceLeak] nbdkit-1.30.6/plugins/data/format.c:1774:22: style: Checking if unsigned expression 'e.sl.n' is less than zero. [unsignedLessThanZero] nbdkit-1.30.6/plugins/data/format.c:1774:31: style: Checking if unsigned expression 'm' is less than zero. [unsignedLessThanZero] nbdkit-1.30.6/plugins/data/format.c:430:69: style:inconclusive: Function 'read_data_format' argument 3 names different: declaration 'size' definition 'size_rtn'. [funcArgNamesDifferent] nbdkit-1.30.6/plugins/data/format.h:42:61: note: Function 'read_data_format' argument 3 names different: declaration 'size' definition 'size_rtn'. nbdkit-1.30.6/plugins/data/format.c:430:69: note: Function 'read_data_format' argument 3 names different: declaration 'size' definition 'size_rtn'. nbdkit-1.30.6/plugins/data/format.c:475:18: style:inconclusive: Function 'parser' argument 5 names different: declaration 'root_rtn' definition 'rtn'. [funcArgNamesDifferent] nbdkit-1.30.6/plugins/data/format.c:423:29: note: Function 'parser' argument 5 names different: declaration 'root_rtn' definition 'rtn'. nbdkit-1.30.6/plugins/data/format.c:475:18: note: Function 'parser' argument 5 names different: declaration 'root_rtn' definition 'rtn'. nbdkit-1.30.6/plugins/data/format.c:113:13: style: struct member 'expr::id' is never used. [unusedStructMember] nbdkit-1.30.6/plugins/torrent/torrent.cpp:477:8: style: C-style pointer casting [cstyleCast] nbdkit-1.30.6/plugins/torrent/torrent.cpp:490:23: style: C-style pointer casting [cstyleCast] nbdkit-1.30.6/plugins/torrent/torrent.cpp:510:23: style: C-style pointer casting [cstyleCast] nbdkit-1.30.6/plugins/torrent/torrent.cpp:539:11: style: C-style pointer casting [cstyleCast] nbdkit-1.30.6/plugins/torrent/torrent.cpp:387:37: style: Local variable 'alerts' shadows outer variable [shadowVariable] nbdkit-1.30.6/plugins/torrent/torrent.cpp:106:37: note: Shadowed declaration nbdkit-1.30.6/plugins/torrent/torrent.cpp:387:37: note: Shadow variable nbdkit-1.30.6/plugins/torrent/torrent.cpp:548:19: style: Local variable 'plugin' shadows outer variable [shadowVariable] nbdkit-1.30.6/plugins/torrent/torrent.cpp:566:29: note: Shadowed declaration nbdkit-1.30.6/plugins/torrent/torrent.cpp:548:19: note: Shadow variable nbdkit-1.30.6/server/exports.c:155:49: style:inconclusive: Function 'exports_resolve_default' argument 1 names different: declaration 'exports' definition 'exps'. [funcArgNamesDifferent] nbdkit-1.30.6/server/internal.h:556:60: note: Function 'exports_resolve_default' argument 1 names different: declaration 'exports' definition 'exps'. nbdkit-1.30.6/server/exports.c:155:49: note: Function 'exports_resolve_default' argument 1 names different: declaration 'exports' definition 'exps'. nbdkit-1.30.6/server/fuzzer.c:49:0: error: #error "This file should only be compiled when libFuzzer is enabled" [preprocessorErrorDirective] nbdkit-1.30.6/plugins/ocaml/plugin.c:114:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:125:5: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:142:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:155:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:174:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:190:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:206:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:222:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ssh/ssh.c:565:9: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/server/connections.c:331:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/plugins/ocaml/plugin.c:238:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ssh/ssh.c:599:9: portability: 'buf' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] nbdkit-1.30.6/server/connections.c:395:30: style:inconclusive: Function 'raw_send_socket' argument 1 names different: declaration 'buf' definition 'vbuf'. [funcArgNamesDifferent] nbdkit-1.30.6/server/connections.c:61:41: note: Function 'raw_send_socket' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/server/connections.c:395:30: note: Function 'raw_send_socket' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/plugins/ocaml/plugin.c:254:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/server/connections.c:426:29: style:inconclusive: Function 'raw_send_other' argument 1 names different: declaration 'buf' definition 'vbuf'. [funcArgNamesDifferent] nbdkit-1.30.6/server/connections.c:63:40: note: Function 'raw_send_other' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/server/connections.c:426:29: note: Function 'raw_send_other' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/plugins/ocaml/plugin.c:270:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/server/connections.c:452:17: style:inconclusive: Function 'raw_recv' argument 1 names different: declaration 'buf' definition 'vbuf'. [funcArgNamesDifferent] nbdkit-1.30.6/server/connections.c:60:29: note: Function 'raw_recv' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/server/connections.c:452:17: note: Function 'raw_recv' argument 1 names different: declaration 'buf' definition 'vbuf'. nbdkit-1.30.6/plugins/ocaml/plugin.c:303:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:322:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:344:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:364:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:382:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:402:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:442:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:458:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:474:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:490:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:506:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:522:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:538:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:554:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:570:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:586:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:633:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:662:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:683:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:701:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:722:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:744:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/plugins/ocaml/plugin.c:784:3: style: Unused variable: _unused [unusedVariable] nbdkit-1.30.6/server/backend.c:416:21: style: Condition 'c->exportsize==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/server/synopsis.c:1:1: error: syntax error [syntaxError] nbdkit-1.30.6/server/main.c:172:14: style: Condition 'binary!=NULL' is always false [knownConditionTrueFalse] nbdkit-1.30.6/server/main.c:152:31: note: Assignment 'binary=NULL', assigned value is 0 nbdkit-1.30.6/server/main.c:172:14: note: Condition 'binary!=NULL' is always false nbdkit-1.30.6/server/main.c:1110:7: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] nbdkit-1.30.6/server/main.c:1111:7: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] nbdkit-1.30.6/server/main.c:701:11: warning: Either the condition 'p' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] nbdkit-1.30.6/server/main.c:702:9: note: Assuming that condition 'p' is not redundant nbdkit-1.30.6/server/main.c:701:11: note: Null pointer subtraction nbdkit-1.30.6/server/main.c:814:39: style:inconclusive: Function 'open_plugin_so' argument 2 names different: declaration 'filename' definition 'name'. [funcArgNamesDifferent] nbdkit-1.30.6/server/main.c:82:62: note: Function 'open_plugin_so' argument 2 names different: declaration 'filename' definition 'name'. nbdkit-1.30.6/server/main.c:814:39: note: Function 'open_plugin_so' argument 2 names different: declaration 'filename' definition 'name'. nbdkit-1.30.6/server/main.c:867:29: style:inconclusive: Function 'open_filter_so' argument 3 names different: declaration 'filename' definition 'name'. [funcArgNamesDifferent] nbdkit-1.30.6/server/main.c:83:84: note: Function 'open_filter_so' argument 3 names different: declaration 'filename' definition 'name'. nbdkit-1.30.6/server/main.c:867:29: note: Function 'open_filter_so' argument 3 names different: declaration 'filename' definition 'name'. nbdkit-1.30.6/tests/test-cc-cpp.cpp:143:19: style: Local variable 'plugin' shadows outer variable [shadowVariable] nbdkit-1.30.6/tests/test-cc-cpp.cpp:153:29: note: Shadowed declaration nbdkit-1.30.6/tests/test-cc-cpp.cpp:143:19: note: Shadow variable nbdkit-1.30.6/tests/test-cxx-filter.cpp:50:19: style: Local variable 'filter' shadows outer variable [shadowVariable] nbdkit-1.30.6/tests/test-cxx-filter.cpp:55:29: note: Shadowed declaration nbdkit-1.30.6/tests/test-cxx-filter.cpp:50:19: note: Shadow variable nbdkit-1.30.6/tests/test-curl-cookie-script.c:61:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] nbdkit-1.30.6/tests/test-curl-cookie-script.c:85:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-cxx-plugin.cpp:144:19: style: Local variable 'plugin' shadows outer variable [shadowVariable] nbdkit-1.30.6/tests/test-cxx-plugin.cpp:154:29: note: Shadowed declaration nbdkit-1.30.6/tests/test-cxx-plugin.cpp:144:19: note: Shadow variable nbdkit-1.30.6/tests/test-curl-header-script.c:63:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] nbdkit-1.30.6/tests/test-curl.c:85:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-curl-header-script.c:107:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-curl.c:102:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-ext2.c:54:52: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-data.c:63:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-gzip-curl.c:71:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-gzip.c:60:60: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-gzip-curl.c:83:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-golang.c:71:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/server/protocol-handshake-newstyle.c:177:11: style: Condition 'len==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/tests/test-lang-plugins.c:65:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers-filter.c:140:3: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] nbdkit-1.30.6/tests/test-memory.c:55:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-nbd.c:56:51: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-nbd.c:68:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-nbd.c:79:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-file-block.c:135:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-ocaml.c:58:29: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers-filter.c:107:45: style: Parameter 'backend' can be declared as pointer to const [constParameter] nbdkit-1.30.6/tests/test-layers-filter.c:206:43: style: Parameter 'next' can be declared as pointer to const [constParameter] nbdkit-1.30.6/tests/test-retry-request-mirror.c:70:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-retry-request-mirror.c:83:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-offset.c:116:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-tar-gzip-curl.c:71:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-tar-gzip-curl.c:84:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-tar-xz-curl.c:71:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-tar-xz-curl.c:84:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-socket-activation.c:178:3: error: Resource handle 'sock' freed twice. [doubleFree] nbdkit-1.30.6/tests/test-socket-activation.c:152:5: note: Resource handle 'sock' freed twice. nbdkit-1.30.6/tests/test-socket-activation.c:178:3: note: Resource handle 'sock' freed twice. nbdkit-1.30.6/tests/test-vddk.c:66:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-xz.c:59:53: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-tmpdisk.c:55:55: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-xz-curl.c:71:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-xz-curl.c:83:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:683:66: style: Condition 'fwrite(&log_buf[last_out],log_len-last_out,1,stderr)==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/tests/test-layers.c:111:3: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] nbdkit-1.30.6/tests/test-layers.c:215:33: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:227:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:235:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:247:45: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:259:46: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:273:37: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:359:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:372:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:384:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:392:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:400:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:406:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:412:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:418:35: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:424:34: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:430:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:436:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:442:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:448:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:454:36: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:475:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:493:33: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:511:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:529:31: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:547:31: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:565:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:584:34: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:601:44: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:610:32: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/test-layers.c:622:34: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] nbdkit-1.30.6/tests/web-server.c:210:13: style: Condition 'r==-1' is always false [knownConditionTrueFalse] nbdkit-1.30.6/tests/web-server.c:238:13: style: Variable 'eof' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/tests/web-server.c:249:13: style: Variable 'eof' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/tests/web-server.c:257:11: style: Variable 'eof' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/tests/web-server.c:397:12: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] nbdkit-1.30.6/server/test-public.c:485:3: error: Resource leak: fd [resourceLeak] nbdkit-1.30.6/plugins/nbd/nbd.c:1080:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] nbdkit-1.30.6/plugins/nbd/nbd.c:1121:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] nbdkit-1.30.6/plugins/nbd/nbd.c:1170:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] nbdkit-1.30.6/plugins/vddk/vddk.c:866:10: error: Uninitialized variable: info [uninitvar] nbdkit-1.30.6/plugins/vddk/vddk.c:863:44: note: Assuming condition is false nbdkit-1.30.6/plugins/vddk/vddk.c:866:10: note: Uninitialized variable: info nbdkit-1.30.6/plugins/vddk/vddk.c:898:25: error: Uninitialized variable: info [uninitvar] nbdkit-1.30.6/plugins/vddk/vddk.c:885:44: note: Assuming condition is false nbdkit-1.30.6/plugins/vddk/vddk.c:898:25: note: Uninitialized variable: info nbdkit-1.30.6/plugins/vddk/vddk.c:997:10: error: Uninitialized variable: ret [uninitvar] nbdkit-1.30.6/plugins/vddk/vddk.c:994:51: note: Assuming condition is false nbdkit-1.30.6/plugins/vddk/vddk.c:997:10: note: Uninitialized variable: ret diff: head nbdkit-1.30.6/filters/multi-conn/multi-conn.c:245:35: style: Parameter 'next' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/multi-conn/multi-conn.c:245:35: style: Parameter 'next' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:129:59: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:129:59: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:138:30: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:138:30: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:147:32: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:147:32: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:161:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:161:31: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:170:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:170:31: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:179:35: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:179:35: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:188:33: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:188:33: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:197:36: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:197:36: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:206:31: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:206:31: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:215:27: style: Parameter 'handle' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/filters/tls-fallback/tls-fallback.c:215:27: style: Parameter 'handle' can be declared with const [constParameter] head nbdkit-1.30.6/plugins/ruby/ruby.c:104:67: style: Parameter 'argv' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/plugins/ruby/ruby.c:104:67: style: Parameter 'argv' can be declared with const [constParameter] head nbdkit-1.30.6/tests/test-layers-filter.c:107:45: style: Parameter 'backend' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/tests/test-layers-filter.c:107:45: style: Parameter 'backend' can be declared with const [constParameter] head nbdkit-1.30.6/tests/test-layers-filter.c:206:43: style: Parameter 'next' can be declared as pointer to const [constParameter] 2.8 nbdkit-1.30.6/tests/test-layers-filter.c:206:43: style: Parameter 'next' can be declared with const [constParameter] DONE