2022-06-24 08:38 ftp://ftp.de.debian.org/debian/pool/main/p/parted/parted_3.5.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j1 platform: Linux-4.19.0-18-amd64-x86_64-with-debian-10.12 python: 3.7.3 client-version: 1.3.24 compiler: g++ (Debian 8.3.0-6) 8.3.0 cppcheck: head 2.8 head-info: 60c1eef (2022-06-23 20:26:47 +0200) count: 426 425 elapsed-time: 237.8 33.0 head-timing-info: Tokenizer::simplifyTokens1: 234.873s (avg. 1.40643s - 167 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 230.829s (avg. 1.44268s - 160 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 2.78756s (avg. 0.0174223s - 160 result(s)) Tokenizer::createTokens: 0.604902s (avg. 0.00297981s - 203 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.35442s (avg. 0.00221513s - 160 result(s)) Overall time: 471.1s old-timing-info: Tokenizer::simplifyTokens1: 30.2643s (avg. 0.181223s - 167 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 26.1961s (avg. 0.163726s - 160 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 2.81482s (avg. 0.0175926s - 160 result(s)) Tokenizer::createTokens: 0.597495s (avg. 0.00294333s - 203 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.336916s (avg. 0.00210573s - 160 result(s)) Overall time: 61.8912s head results: parted-3.5/lib/xalloc.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] parted-3.5/lib/c-ctype.h:29:0: error: #error "Please include config.h first." [preprocessorErrorDirective] parted-3.5/lib/cdefs.h:31:0: error: #error "You need a ISO C conforming compiler to use the glibc headers" [preprocessorErrorDirective] parted-3.5/lib/error.c:142:0: error: #error Please port fcntl to your platform [preprocessorErrorDirective] parted-3.5/lib/fpending.c:60:0: error: #error "Please port gnulib fpending.c to your platform!" [preprocessorErrorDirective] parted-3.5/lib/stat-time.h:31:0: error: #error "Please include config.h first." [preprocessorErrorDirective] parted-3.5/lib/fsync.c:85:0: error: #error "This platform lacks fsync function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib." [preprocessorErrorDirective] parted-3.5/lib/getopt.c:471:25: style:inconclusive: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:101:36: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt.c:471:25: note: Function '_getopt_internal_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt.c:471:38: style:inconclusive: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:101:52: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt.c:471:38: note: Function '_getopt_internal_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt.c:471:56: style:inconclusive: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:102:23: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. parted-3.5/lib/getopt.c:471:56: note: Function '_getopt_internal_r' argument 3 names different: declaration '__shortopts' definition 'optstring'. parted-3.5/lib/getopt.c:472:28: style:inconclusive: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:103:32: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. parted-3.5/lib/getopt.c:472:28: note: Function '_getopt_internal_r' argument 4 names different: declaration '__longopts' definition 'longopts'. parted-3.5/lib/getopt.c:472:43: style:inconclusive: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:103:49: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. parted-3.5/lib/getopt.c:472:43: note: Function '_getopt_internal_r' argument 5 names different: declaration '__longind' definition 'longind'. parted-3.5/lib/getopt.c:473:11: style:inconclusive: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:104:15: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. parted-3.5/lib/getopt.c:473:11: note: Function '_getopt_internal_r' argument 6 names different: declaration '__long_only' definition 'long_only'. parted-3.5/lib/getopt.c:473:43: style:inconclusive: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:104:49: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. parted-3.5/lib/getopt.c:473:43: note: Function '_getopt_internal_r' argument 7 names different: declaration '__data' definition 'd'. parted-3.5/lib/getopt.c:473:50: style:inconclusive: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:105:15: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. parted-3.5/lib/getopt.c:473:50: note: Function '_getopt_internal_r' argument 8 names different: declaration '__posixly_correct' definition 'posixly_correct'. parted-3.5/lib/getopt.c:703:23: style:inconclusive: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:25:34: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt.c:703:23: note: Function '_getopt_internal' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt.c:703:36: style:inconclusive: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:25:50: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt.c:703:36: note: Function '_getopt_internal' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt.c:703:54: style:inconclusive: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:26:21: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. parted-3.5/lib/getopt.c:703:54: note: Function '_getopt_internal' argument 3 names different: declaration '__shortopts' definition 'optstring'. parted-3.5/lib/getopt.c:704:26: style:inconclusive: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:27:30: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. parted-3.5/lib/getopt.c:704:26: note: Function '_getopt_internal' argument 4 names different: declaration '__longopts' definition 'longopts'. parted-3.5/lib/getopt.c:704:41: style:inconclusive: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:27:47: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. parted-3.5/lib/getopt.c:704:41: note: Function '_getopt_internal' argument 5 names different: declaration '__longind' definition 'longind'. parted-3.5/lib/getopt.c:704:54: style:inconclusive: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:28:13: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. parted-3.5/lib/getopt.c:704:54: note: Function '_getopt_internal' argument 6 names different: declaration '__long_only' definition 'long_only'. parted-3.5/lib/getopt.c:705:9: style:inconclusive: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:28:30: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. parted-3.5/lib/getopt.c:705:9: note: Function '_getopt_internal' argument 7 names different: declaration '__posixly_correct' definition 'posixly_correct'. parted-3.5/lib/getopt1.c:36:21: style:inconclusive: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:107:32: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt1.c:36:21: note: Function '_getopt_long_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt1.c:36:34: style:inconclusive: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:107:48: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt1.c:36:34: note: Function '_getopt_long_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt1.c:36:52: style:inconclusive: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:108:19: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. parted-3.5/lib/getopt1.c:36:52: note: Function '_getopt_long_r' argument 3 names different: declaration '__shortopts' definition 'options'. parted-3.5/lib/getopt1.c:37:24: style:inconclusive: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:109:28: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. parted-3.5/lib/getopt1.c:37:24: note: Function '_getopt_long_r' argument 4 names different: declaration '__longopts' definition 'long_options'. parted-3.5/lib/getopt1.c:37:43: style:inconclusive: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:109:45: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. parted-3.5/lib/getopt1.c:37:43: note: Function '_getopt_long_r' argument 5 names different: declaration '__longind' definition 'opt_index'. parted-3.5/lib/getopt1.c:38:24: style:inconclusive: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:110:28: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. parted-3.5/lib/getopt1.c:38:24: note: Function '_getopt_long_r' argument 6 names different: declaration '__data' definition 'd'. parted-3.5/lib/getopt1.c:59:26: style:inconclusive: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:112:37: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt1.c:59:26: note: Function '_getopt_long_only_r' argument 1 names different: declaration '___argc' definition 'argc'. parted-3.5/lib/getopt1.c:59:39: style:inconclusive: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:112:53: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt1.c:59:39: note: Function '_getopt_long_only_r' argument 2 names different: declaration '___argv' definition 'argv'. parted-3.5/lib/getopt1.c:59:57: style:inconclusive: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:113:17: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. parted-3.5/lib/getopt1.c:59:57: note: Function '_getopt_long_only_r' argument 3 names different: declaration '__shortopts' definition 'options'. parted-3.5/lib/getopt1.c:60:29: style:inconclusive: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:114:26: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. parted-3.5/lib/getopt1.c:60:29: note: Function '_getopt_long_only_r' argument 4 names different: declaration '__longopts' definition 'long_options'. parted-3.5/lib/getopt1.c:60:48: style:inconclusive: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:115:10: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. parted-3.5/lib/getopt1.c:60:48: note: Function '_getopt_long_only_r' argument 5 names different: declaration '__longind' definition 'opt_index'. parted-3.5/lib/getopt1.c:61:29: style:inconclusive: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. [funcArgNamesDifferent] parted-3.5/lib/getopt_int.h:116:26: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. parted-3.5/lib/getopt1.c:61:29: note: Function '_getopt_long_only_r' argument 6 names different: declaration '__data' definition 'd'. parted-3.5/lib/getprogname.c:291:0: error: #error "getprogname module not ported to this OS" [preprocessorErrorDirective] parted-3.5/lib/getrandom.c:178:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] parted-3.5/lib/ialloc.h:28:0: error: #error "Please include config.h first." [preprocessorErrorDirective] parted-3.5/lib/localcharset.c:1088:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] parted-3.5/lib/localcharset.c:1079:24: note: Assignment 'locale=NULL', assigned value is 0 parted-3.5/lib/localcharset.c:1088:14: note: Condition 'locale==NULL' is always true parted-3.5/lib/localcharset.c:579:14: style: struct member 'table_entry::locale' is never used. [unusedStructMember] parted-3.5/lib/localcharset.c:580:14: style: struct member 'table_entry::canonical' is never used. [unusedStructMember] parted-3.5/lib/localcharset.c:1097:22: style: Variable 'locale' is assigned a value that is never used. [unreadVariable] parted-3.5/lib/long-options.c:45:25: style:inconclusive: Function 'parse_long_options' argument 1 names different: declaration '_argc' definition 'argc'. [funcArgNamesDifferent] parted-3.5/lib/long-options.h:25:30: note: Function 'parse_long_options' argument 1 names different: declaration '_argc' definition 'argc'. parted-3.5/lib/long-options.c:45:25: note: Function 'parse_long_options' argument 1 names different: declaration '_argc' definition 'argc'. parted-3.5/lib/long-options.c:46:28: style:inconclusive: Function 'parse_long_options' argument 2 names different: declaration '_argv' definition 'argv'. [funcArgNamesDifferent] parted-3.5/lib/long-options.h:26:33: note: Function 'parse_long_options' argument 2 names different: declaration '_argv' definition 'argv'. parted-3.5/lib/long-options.c:46:28: note: Function 'parse_long_options' argument 2 names different: declaration '_argv' definition 'argv'. parted-3.5/lib/long-options.c:47:33: style:inconclusive: Function 'parse_long_options' argument 3 names different: declaration '_command_name' definition 'command_name'. [funcArgNamesDifferent] parted-3.5/lib/long-options.h:27:38: note: Function 'parse_long_options' argument 3 names different: declaration '_command_name' definition 'command_name'. parted-3.5/lib/long-options.c:47:33: note: Function 'parse_long_options' argument 3 names different: declaration '_command_name' definition 'command_name'. parted-3.5/lib/long-options.c:48:33: style:inconclusive: Function 'parse_long_options' argument 4 names different: declaration '_package' definition 'package'. [funcArgNamesDifferent] parted-3.5/lib/long-options.h:28:38: note: Function 'parse_long_options' argument 4 names different: declaration '_package' definition 'package'. parted-3.5/lib/long-options.c:48:33: note: Function 'parse_long_options' argument 4 names different: declaration '_package' definition 'package'. parted-3.5/lib/long-options.c:49:33: style:inconclusive: Function 'parse_long_options' argument 5 names different: declaration '_version' definition 'version'. [funcArgNamesDifferent] parted-3.5/lib/long-options.h:29:38: note: Function 'parse_long_options' argument 5 names different: declaration '_version' definition 'version'. parted-3.5/lib/long-options.c:49:33: note: Function 'parse_long_options' argument 5 names different: declaration '_version' definition 'version'. parted-3.5/lib/long-options.c:76:11: error: va_list 'authors' was opened but not closed by va_end(). [va_end_missing] parted-3.5/lib/long-options.c:129:11: error: va_list 'authors' was opened but not closed by va_end(). [va_end_missing] parted-3.5/lib/malloc/dynarray-skeleton.c:95:0: error: #error "DYNARRAY_STRUCT must be defined" [preprocessorErrorDirective] parted-3.5/lib/malloc/dynarray.h:171:1: error: There is an unknown macro here somewhere. Configuration is required. If libc_hidden_proto is a macro then please configure it. [unknownMacro] parted-3.5/lib/malloc/scratch_buffer_dupfree.c:38:7: error: Memory leak: copy [memleak] parted-3.5/lib/rawmemchr.c:111:16: style: Variable 's' is reassigned a value before the old one has been used. [redundantAssignment] parted-3.5/lib/rawmemchr.c:52:36: note: s is assigned parted-3.5/lib/rawmemchr.c:111:16: note: s is overwritten parted-3.5/lib/rawmemchr.c:111:16: style: Variable 's' is assigned a value that is never used. [unreadVariable] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression 'nmemb' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(size))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:(size))-1)<0)?~(((((1?0:(size))+1)<<((sizeof(size)*CHAR_BIT)-2))-1)*2+1):((1?0:(size))+0)' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(nmemb))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(size))+0))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(size))+0))-1)<0)?~(((((1?0:((1?0:(size))+0))+1)<<((sizeof((1?0:(size))+0)*CHAR_BIT)-2))-1)*2+1):((1?0:((1?0:(size))+0))+0)' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:((1?0:(nmemb))+0))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(((1?0:((1?0:(nmemb))+0))-1)<0)?~(((((1?0:((1?0:(nmemb))+0))+1)<<((sizeof((1?0:(nmemb))+0)*CHAR_BIT)-2))-1)*2+1):((1?0:((1?0:(nmemb))+0))+0)' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((char)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: style: Unsigned expression '*(&nbytes)=((short)((unsigned int)(nmemb)*(unsigned int)(size)))' can't be negative so it is unnecessary to test it. [unsignedPositive] parted-3.5/lib/reallocarray.c:31:7: style: Checking if unsigned expression '(1?0:(*(&nbytes)))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/reallocarray.c:31:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] parted-3.5/lib/regcomp.c:125:5: error: There is an unknown macro here somewhere. Configuration is required. If gettext_noop is a macro then please configure it. [unknownMacro] parted-3.5/lib/malloc/dynarray-skeleton.c:149:0: error: failed to expand 'DYNARRAY_FREE', Invalid ## usage when expanding 'DYNARRAY_CONCAT0': Unexpected token ')' [preprocessorErrorDirective] parted-3.5/lib/sleep.c:74:0: error: #error "Please port gnulib sleep.c to your platform, possibly using usleep() or select(), then report this to bug-gnulib." [preprocessorErrorDirective] parted-3.5/lib/strerror.c:45:7: style: Condition 'msg' is always false [knownConditionTrueFalse] parted-3.5/lib/strerror.c:44:21: note: Assignment 'msg=NULL', assigned value is 0 parted-3.5/lib/strerror.c:45:7: note: Condition 'msg' is always false parted-3.5/lib/strtol.c:324:13: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] parted-3.5/lib/strtol.c:317:11: note: Assignment 'end=NULL', assigned value is 0 parted-3.5/lib/strtol.c:326:13: note: Assuming that condition 's==end' is not redundant parted-3.5/lib/strtol.c:298:10: note: Assignment 'save=s', assigned value is 0 parted-3.5/lib/strtol.c:298:8: note: save is assigned 's' here. parted-3.5/lib/strtol.c:324:13: note: Null pointer dereference parted-3.5/lib/usleep.c:62:56: style: The comparison 'micro/1000000 != seconds' is always false because 'micro/1000000' and 'seconds' represent the same value. [knownConditionTrueFalse] parted-3.5/lib/usleep.c:61:32: note: 'seconds' is assigned value 'micro/1000000' here. parted-3.5/lib/usleep.c:62:56: note: The comparison 'micro/1000000 != seconds' is always false because 'micro/1000000' and 'seconds' represent the same value. parted-3.5/lib/xstrtol.c:54:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] parted-3.5/lib/xstrtol.c:87:20: error: Uninitialized variable: &t_ptr [uninitvar] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*x' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:(*x))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:((1?0:(*x))+0))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(((1?0:((1?0:(*x))+0))-1)<0)?~(((((1?0:((1?0:(*x))+0))+1)<<((sizeof((1?0:(*x))+0)*CHAR_BIT)-2))-1)*2+1):((1?0:((1?0:(*x))+0))+0)' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*(&scaled)=((char)((unsigned int)(*x)*(unsigned int)(scale_factor)))' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Unsigned expression '*(&scaled)=((char)((unsigned int)(*x)*(unsigned int)(scale_factor)))' can't be negative so it is unnecessary to test it. [unsignedPositive] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '*(&scaled)=((short)((unsigned int)(*x)*(unsigned int)(scale_factor)))' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:54:7: style: Unsigned expression '*(&scaled)=((short)((unsigned int)(*x)*(unsigned int)(scale_factor)))' can't be negative so it is unnecessary to test it. [unsignedPositive] parted-3.5/lib/xstrtol.c:54:7: style: Checking if unsigned expression '(1?0:(*(&scaled)))-1' is less than zero. [unsignedLessThanZero] parted-3.5/lib/xstrtol.c:56:15: style: Checking if unsigned expression '*x' is less than zero. [unsignedLessThanZero] parted-3.5/libparted/arch/beos.c:74:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] parted-3.5/libparted/arch/beos.c:101:9: warning: Either the condition '(fd=open(dev->path,O_RDONLY))<0' is redundant or ioctl() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] parted-3.5/libparted/arch/beos.c:99:37: note: Assuming that condition '(fd=open(dev->path,O_RDONLY))<0' is not redundant parted-3.5/libparted/arch/beos.c:101:9: note: Invalid argument parted-3.5/libparted/arch/beos.c:102:9: warning: Either the condition '(fd=open(dev->path,O_RDONLY))<0' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] parted-3.5/libparted/arch/beos.c:99:37: note: Assuming that condition '(fd=open(dev->path,O_RDONLY))<0' is not redundant parted-3.5/libparted/arch/beos.c:102:9: note: Invalid argument parted-3.5/libparted/arch/beos.c:446:11: portability: 'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/beos.c:535:11: portability: 'buffer' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/beos.c:274:14: style: Unused variable: stat_info [unusedVariable] parted-3.5/libparted/arch/gnu.c:251:3: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] parted-3.5/libparted/arch/gnu.c:197:1: style: Label 'error_free_arch_specific' is not used. [unusedLabel] parted-3.5/libparted/arch/gnu.c:783:34: style: Parameter 'buffer' can be declared as pointer to const [constParameter] parted-3.5/libparted/arch/gnu.c:515:23: portability: 'user_buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:515:35: portability: 'user_buffer+have_read' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:517:4: portability: 'store_read_buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:619:16: portability: 'temp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:657:10: portability: 'buffer' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:697:10: portability: 'buffer' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] parted-3.5/libparted/arch/gnu.c:61:27: style: Variable 'store_block_size' is assigned a value that is never used. [unreadVariable] parted-3.5/libparted/arch/gnu.c:173:15: style: Unused variable: arch_specific [unusedVariable] parted-3.5/libparted/arch/gnu.c:425:29: style: Variable 'arch_specific' is assigned a value that is never used. [unreadVariable] parted-3.5/libparted/arch/gnu.c:485:10: style: Unused variable: offset [unusedVariable] parted-3.5/libparted/arch/gnu.c:786:13: style: Variable 'done' is assigned a value that is never used. [unreadVariable] parted-3.5/libparted/arch/gnu.c:785:8: style: Unused variable: status [unusedVariable] parted-3.5/libparted/arch/linux.c:1838:24: style: Obsolescent function 'llseek' called. It is recommended to use 'lseek64' instead. [prohibitedllseekCalled] parted-3.5/libparted/arch/linux.c:2336:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] parted-3.5/libparted/arch/linux.c:3163:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] parted-3.5/libparted/arch/linux.c:2604:47: style: Condition 'linux_part.length==1' is always true [knownConditionTrueFalse] parted-3.5/libparted/arch/linux.c:2602:37: note: Assignment 'linux_part.length=1', assigned value is 1 parted-3.5/libparted/arch/linux.c:2604:47: note: Condition 'linux_part.length==1' is always true parted-3.5/libparted/arch/linux.c:3189:38: style: Condition 'start==part->geom.start' is always true [knownConditionTrueFalse] parted-3.5/libparted/arch/linux.c:3181:30: note: Assuming that condition 'start==part->geom.start' is not redundant parted-3.5/libparted/arch/linux.c:3183:36: note: Assuming condition is false parted-3.5/libparted/arch/linux.c:3189:38: note: Condition 'start==part->geom.start' is always true parted-3.5/libparted/arch/linux.c:2498:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] parted-3.5/libparted/arch/linux.c:2792:12: style: Variable 'ok' is reassigned a value before the old one has been used. [redundantAssignment] parted-3.5/libparted/arch/linux.c:2783:28: note: ok is assigned parted-3.5/libparted/arch/linux.c:2792:12: note: ok is overwritten parted-3.5/libparted/arch/linux.c:93:24: style: struct member 'hd_geometry::cylinders' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:100:13: style: struct member 'ata7_sectinfo::rsv' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:106:25: style: struct member 'hd_driveid::config' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:107:25: style: struct member 'hd_driveid::cyls' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:108:25: style: struct member 'hd_driveid::reserved2' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:109:25: style: struct member 'hd_driveid::heads' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:110:25: style: struct member 'hd_driveid::track_bytes' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:111:25: style: struct member 'hd_driveid::sector_bytes' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:112:25: style: struct member 'hd_driveid::sectors' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:113:25: style: struct member 'hd_driveid::vendor0' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:114:25: style: struct member 'hd_driveid::vendor1' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:115:25: style: struct member 'hd_driveid::vendor2' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:116:25: style: struct member 'hd_driveid::serial_no' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:117:25: style: struct member 'hd_driveid::buf_type' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:118:25: style: struct member 'hd_driveid::buf_size' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:120:25: style: struct member 'hd_driveid::ecc_bytes' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:122:25: style: struct member 'hd_driveid::fw_rev' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:124:25: style: struct member 'hd_driveid::max_multsect' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:125:25: style: struct member 'hd_driveid::vendor3' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:126:25: style: struct member 'hd_driveid::dword_io' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:127:25: style: struct member 'hd_driveid::vendor4' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:128:25: style: struct member 'hd_driveid::capability' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:130:25: style: struct member 'hd_driveid::reserved50' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:131:25: style: struct member 'hd_driveid::vendor5' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:132:25: style: struct member 'hd_driveid::tPIO' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:133:25: style: struct member 'hd_driveid::vendor6' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:134:25: style: struct member 'hd_driveid::tDMA' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:135:25: style: struct member 'hd_driveid::field_valid' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:136:25: style: struct member 'hd_driveid::cur_cyls' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:137:25: style: struct member 'hd_driveid::cur_heads' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:138:25: style: struct member 'hd_driveid::cur_sectors' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:139:25: style: struct member 'hd_driveid::cur_capacity0' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:140:25: style: struct member 'hd_driveid::cur_capacity1' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:141:25: style: struct member 'hd_driveid::multsect' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:142:25: style: struct member 'hd_driveid::multsect_valid' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:143:25: style: struct member 'hd_driveid::lba_capacity' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:144:25: style: struct member 'hd_driveid::dma_1word' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:145:25: style: struct member 'hd_driveid::dma_mword' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:146:25: style: struct member 'hd_driveid::eide_pio_modes' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:147:25: style: struct member 'hd_driveid::eide_dma_min' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:148:25: style: struct member 'hd_driveid::eide_dma_time' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:150:25: style: struct member 'hd_driveid::eide_pio' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:151:25: style: struct member 'hd_driveid::eide_pio_iordy' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:152:25: style: struct member 'hd_driveid::words69_70' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:154:25: style: struct member 'hd_driveid::words71_74' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:155:25: style: struct member 'hd_driveid::queue_depth' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:156:25: style: struct member 'hd_driveid::words76_79' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:157:25: style: struct member 'hd_driveid::major_rev_num' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:158:25: style: struct member 'hd_driveid::minor_rev_num' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:159:25: style: struct member 'hd_driveid::command_set_1' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:161:25: style: struct member 'hd_driveid::command_set_2' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:162:25: style: struct member 'hd_driveid::cfsse' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:164:25: style: struct member 'hd_driveid::cfs_enable_1' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:165:25: style: struct member 'hd_driveid::cfs_enable_2' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:166:25: style: struct member 'hd_driveid::csf_default' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:167:25: style: struct member 'hd_driveid::dma_ultra' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:168:25: style: struct member 'hd_driveid::word89' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:169:25: style: struct member 'hd_driveid::word90' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:170:25: style: struct member 'hd_driveid::CurAPMvalues' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:171:25: style: struct member 'hd_driveid::word92' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:172:25: style: struct member 'hd_driveid::hw_config' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:173:25: style: struct member 'hd_driveid::words94_105' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:176:25: style: struct member 'hd_driveid::words107_116' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:177:25: style: struct member 'hd_driveid::logical_sectsize' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:178:25: style: struct member 'hd_driveid::words119_125' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:179:25: style: struct member 'hd_driveid::last_lun' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:180:25: style: struct member 'hd_driveid::word127' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:181:25: style: struct member 'hd_driveid::dlf' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:192:25: style: struct member 'hd_driveid::csfo' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:199:25: style: struct member 'hd_driveid::words130_155' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:200:25: style: struct member 'hd_driveid::word156' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:201:25: style: struct member 'hd_driveid::words157_159' is never used. [unusedStructMember] parted-3.5/libparted/arch/linux.c:202:25: style: struct member 'hd_driveid::words160_255' is never used. [unusedStructMember] parted-3.5/libparted/cs/constraint.c:320:16: style: Condition 'max_start<0' is always false [knownConditionTrueFalse] parted-3.5/libparted/cs/constraint.c:313:23: note: Assuming that condition 'last_end_solnmin_size' is not redundant parted-3.5/libparted/cs/constraint.c:319:51: note: Assignment 'max_start=last_end_soln-constraint->min_size+1', assigned value is greater than 0 parted-3.5/libparted/cs/constraint.c:320:16: note: Condition 'max_start<0' is always false parted-3.5/libparted/disk.c:869:55: style: Condition 'strcasecmp(name,flag_name)==0' is always false [knownConditionTrueFalse] parted-3.5/libparted/disk.c:869:21: style: Same expression on both sides of '||'. [duplicateExpression] parted-3.5/libparted/disk.c:2456:7: style: Same expression on both sides of '||'. [duplicateExpression] parted-3.5/libparted/disk.c:1679:34: style: Parameter 'disk' can be declared as pointer to const [constParameter] parted-3.5/libparted/exception.c:130:32: style:inconclusive: Function 'default_handler' argument 1 names different: declaration 'ex' definition 'e'. [funcArgNamesDifferent] parted-3.5/libparted/exception.c:72:58: note: Function 'default_handler' argument 1 names different: declaration 'ex' definition 'e'. parted-3.5/libparted/exception.c:130:32: note: Function 'default_handler' argument 1 names different: declaration 'ex' definition 'e'. parted-3.5/libparted/filesys.c:98:54: style: Parameter 'fs_type' can be declared as pointer to const [constParameter] parted-3.5/libparted/filesys.c:219:58: style: Parameter 'detected' can be declared as const array [constParameter] parted-3.5/libparted/fs/amiga/amiga.c:111:14: style: struct member 'RigidDiskBlock::rdb_SummedLongs' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:112:13: style: struct member 'RigidDiskBlock::rdb_ChkSum' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:113:14: style: struct member 'RigidDiskBlock::rdb_HostID' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:114:14: style: struct member 'RigidDiskBlock::rdb_BlockBytes' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:115:14: style: struct member 'RigidDiskBlock::rdb_Flags' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:117:14: style: struct member 'RigidDiskBlock::rdb_BadBlockList' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:119:14: style: struct member 'RigidDiskBlock::rdb_FileSysHeaderList' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:120:14: style: struct member 'RigidDiskBlock::rdb_DriveInit' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:121:14: style: struct member 'RigidDiskBlock::rdb_BootBlockList' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:122:14: style: struct member 'RigidDiskBlock::rdb_Reserved1' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:124:14: style: struct member 'RigidDiskBlock::rdb_Cylinders' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:125:14: style: struct member 'RigidDiskBlock::rdb_Sectors' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:126:14: style: struct member 'RigidDiskBlock::rdb_Heads' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:127:14: style: struct member 'RigidDiskBlock::rdb_Interleave' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:128:14: style: struct member 'RigidDiskBlock::rdb_Park' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:129:14: style: struct member 'RigidDiskBlock::rdb_Reserved2' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:130:14: style: struct member 'RigidDiskBlock::rdb_WritePreComp' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:131:14: style: struct member 'RigidDiskBlock::rdb_ReducedWrite' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:132:14: style: struct member 'RigidDiskBlock::rdb_StepRate' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:133:14: style: struct member 'RigidDiskBlock::rdb_Reserved3' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:135:14: style: struct member 'RigidDiskBlock::rdb_RDBBlocksLo' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:136:14: style: struct member 'RigidDiskBlock::rdb_RDBBlocksHi' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:137:14: style: struct member 'RigidDiskBlock::rdb_LoCylinder' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:138:14: style: struct member 'RigidDiskBlock::rdb_HiCylinder' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:139:14: style: struct member 'RigidDiskBlock::rdb_CylBlocks' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:140:14: style: struct member 'RigidDiskBlock::rdb_AutoParkSeconds' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:141:14: style: struct member 'RigidDiskBlock::rdb_HighRDSKBlock' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:143:14: style: struct member 'RigidDiskBlock::rdb_Reserved4' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:145:10: style: struct member 'RigidDiskBlock::rdb_DiskVendor' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:146:10: style: struct member 'RigidDiskBlock::rdb_DiskProduct' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:147:10: style: struct member 'RigidDiskBlock::rdb_DiskRevision' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:148:10: style: struct member 'RigidDiskBlock::rdb_ControllerVendor' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:149:10: style: struct member 'RigidDiskBlock::rdb_ControllerProduct' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:150:10: style: struct member 'RigidDiskBlock::rdb_ControllerRevision' is never used. [unusedStructMember] parted-3.5/libparted/fs/amiga/amiga.c:151:14: style: struct member 'RigidDiskBlock::rdb_Reserved5' is never used. [unusedStructMember] parted-3.5/libparted/fs/btrfs/btrfs.c:42:25: style: union member 'Anonymous0::sector' is never used. [unusedStructMember] parted-3.5/libparted/fs/btrfs/btrfs.c:36:25: style: struct member 'Anonymous1::csum' is never used. [unusedStructMember] parted-3.5/libparted/fs/btrfs/btrfs.c:37:25: style: struct member 'Anonymous1::fsid' is never used. [unusedStructMember] parted-3.5/libparted/fs/btrfs/btrfs.c:38:26: style: struct member 'Anonymous1::bytenr' is never used. [unusedStructMember] parted-3.5/libparted/fs/btrfs/btrfs.c:39:26: style: struct member 'Anonymous1::flags' is never used. [unusedStructMember] parted-3.5/libparted/fs/ext2/interface.c:40:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/f2fs/f2fs.c:29:39: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/fat/bootsector.c:39:39: style:inconclusive: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/fat/bootsector.h:120:43: note: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/fat/bootsector.c:39:39: note: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/hfs/probe.c:75:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/hfs/probe.c:122:16: error: Uninitialized variable: mdb->old_new [uninitvar] parted-3.5/libparted/fs/hfs/probe.c:113:6: note: Assuming condition is false parted-3.5/libparted/fs/hfs/probe.c:119:9: note: Assignment 'mdb=(struct _HfsMasterDirectoryBlock*)buf', assigned value is parted-3.5/libparted/fs/hfs/probe.c:122:16: note: Uninitialized variable: mdb->old_new parted-3.5/libparted/fs/hfs/probe.c:213:14: error: Uninitialized variable: vh->signature [uninitvar] parted-3.5/libparted/fs/hfs/probe.c:204:25: note: Assignment 'vh=(struct _HfsPVolumeHeader*)buf', assigned value is parted-3.5/libparted/fs/hfs/probe.c:208:6: note: Assuming condition is false parted-3.5/libparted/fs/hfs/probe.c:213:14: note: Uninitialized variable: vh->signature parted-3.5/libparted/fs/jfs/jfs.c:41:26: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/linux_swap/linux_swap.c:43:8: style: struct member 'SwapOldHeader::page_map' is never used. [unusedStructMember] parted-3.5/libparted/fs/linux_swap/linux_swap.c:61:17: style: union member 'Anonymous0::old' is never used. [unusedStructMember] parted-3.5/libparted/fs/nilfs2/nilfs2.c:114:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/nilfs2/nilfs2.c:117:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/ntfs/ntfs.c:39:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/r/fat/bootsector.c:39:39: style:inconclusive: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/fat/bootsector.h:118:43: note: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:39:39: note: Function 'fat_boot_sector_read' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:272:48: style:inconclusive: Function 'fat_boot_sector_set_boot_code' argument 1 names different: declaration 'bs' definition 'bsp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/fat/bootsector.h:122:52: note: Function 'fat_boot_sector_set_boot_code' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:272:48: note: Function 'fat_boot_sector_set_boot_code' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:287:43: style:inconclusive: Function 'fat_boot_sector_generate' argument 1 names different: declaration 'bs' definition 'bsp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/fat/bootsector.h:123:47: note: Function 'fat_boot_sector_generate' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:287:43: note: Function 'fat_boot_sector_generate' argument 1 names different: declaration 'bs' definition 'bsp'. parted-3.5/libparted/fs/r/fat/bootsector.c:385:39: style:inconclusive: Function 'fat_info_sector_read' argument 1 names different: declaration 'is' definition 'isp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/fat/bootsector.h:126:43: note: Function 'fat_info_sector_read' argument 1 names different: declaration 'is' definition 'isp'. parted-3.5/libparted/fs/r/fat/bootsector.c:385:39: note: Function 'fat_info_sector_read' argument 1 names different: declaration 'is' definition 'isp'. parted-3.5/libparted/fs/r/fat/bootsector.c:409:43: style:inconclusive: Function 'fat_info_sector_generate' argument 1 names different: declaration 'is' definition 'isp'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/fat/bootsector.h:127:47: note: Function 'fat_info_sector_generate' argument 1 names different: declaration 'is' definition 'isp'. parted-3.5/libparted/fs/r/fat/bootsector.c:409:43: note: Function 'fat_info_sector_generate' argument 1 names different: declaration 'is' definition 'isp'. parted-3.5/libparted/fs/r/hfs/advfs.c:205:19: error: Uninitialized variable: ret_key->file_ID [uninitvar] parted-3.5/libparted/fs/r/hfs/advfs.c:188:27: note: Assignment 'ret_key=(struct _HfsExtentKey*)record', assigned value is parted-3.5/libparted/fs/r/hfs/advfs.c:205:19: note: Uninitialized variable: ret_key->file_ID parted-3.5/libparted/fs/r/hfs/advfs_plus.c:212:19: error: Uninitialized variable: ret_key->file_ID [uninitvar] parted-3.5/libparted/fs/r/hfs/advfs_plus.c:193:28: note: Assignment 'ret_key=(struct _HfsPExtentKey*)record', assigned value is parted-3.5/libparted/fs/r/hfs/advfs_plus.c:212:19: note: Uninitialized variable: ret_key->file_ID parted-3.5/libparted/fs/r/hfs/cache.c:122:32: style:inconclusive: Function 'hfsc_cache_add_extent' argument 8 names different: declaration 'index' definition 'ref_index'. [funcArgNamesDifferent] parted-3.5/libparted/fs/r/hfs/cache.h:103:32: note: Function 'hfsc_cache_add_extent' argument 8 names different: declaration 'index' definition 'ref_index'. parted-3.5/libparted/fs/r/hfs/cache.c:122:32: note: Function 'hfsc_cache_add_extent' argument 8 names different: declaration 'index' definition 'ref_index'. parted-3.5/libparted/fs/r/hfs/file.c:91:15: error: Uninitialized variable: ret_key->file_ID [uninitvar] parted-3.5/libparted/fs/r/hfs/file.c:75:27: note: Assignment 'ret_key=(struct _HfsExtentKey*)record', assigned value is parted-3.5/libparted/fs/r/hfs/file.c:86:6: note: Assuming condition is false parted-3.5/libparted/fs/r/hfs/file.c:91:15: note: Uninitialized variable: ret_key->file_ID parted-3.5/libparted/fs/r/hfs/file_plus.c:94:15: error: Uninitialized variable: ret_key->file_ID [uninitvar] parted-3.5/libparted/fs/r/hfs/file_plus.c:77:28: note: Assignment 'ret_key=(struct _HfsPExtentKey*)record', assigned value is parted-3.5/libparted/fs/r/hfs/file_plus.c:89:6: note: Assuming condition is false parted-3.5/libparted/fs/r/hfs/file_plus.c:94:15: note: Uninitialized variable: ret_key->file_ID parted-3.5/libparted/fs/r/hfs/probe.c:79:15: error: Uninitialized variable: mdb->signature [uninitvar] parted-3.5/libparted/fs/r/hfs/probe.c:74:8: note: Assignment 'mdb=(struct _HfsMasterDirectoryBlock*)buf', assigned value is parted-3.5/libparted/fs/r/hfs/probe.c:79:15: note: Uninitialized variable: mdb->signature parted-3.5/libparted/fs/reiserfs/reiserfs.c:47:31: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/udf/udf.c:33:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/ufs/ufs.c:180:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/ufs/ufs.c:216:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/fs/ufs/ufs.c:50:11: style: struct member 'ufs_csum::cs_ndir' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:51:11: style: struct member 'ufs_csum::cs_nbfree' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:52:11: style: struct member 'ufs_csum::cs_nifree' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:53:11: style: struct member 'ufs_csum::cs_nffree' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:99:5: style: union member 'Anonymous0::fs_sun' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:102:5: style: union member 'Anonymous0::fs_sunx86' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:98:13: style: struct member 'Anonymous1::fs_npsect' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:101:13: style: struct member 'Anonymous2::fs_state' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:147:5: style: union member 'Anonymous3::fs_sun' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:155:5: style: union member 'Anonymous3::fs_sunx86' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:165:5: style: union member 'Anonymous3::fs_44' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:141:13: style: struct member 'Anonymous4::fs_sparecon' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:142:13: style: struct member 'Anonymous4::fs_reclaim' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:143:13: style: struct member 'Anonymous4::fs_sparecon2' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:144:13: style: struct member 'Anonymous4::fs_state' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:145:13: style: struct member 'Anonymous4::fs_qbmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:146:13: style: struct member 'Anonymous4::fs_qfmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:149:13: style: struct member 'Anonymous5::fs_sparecon' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:150:13: style: struct member 'Anonymous5::fs_reclaim' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:151:13: style: struct member 'Anonymous5::fs_sparecon2' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:152:13: style: struct member 'Anonymous5::fs_npsect' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:153:13: style: struct member 'Anonymous5::fs_qbmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:154:13: style: struct member 'Anonymous5::fs_qfmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:157:13: style: struct member 'Anonymous6::fs_sparecon' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:158:13: style: struct member 'Anonymous6::fs_contigsumsize' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:159:13: style: struct member 'Anonymous6::fs_maxsymlinklen' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:160:13: style: struct member 'Anonymous6::fs_inodefmt' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:161:13: style: struct member 'Anonymous6::fs_maxfilesize' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:162:13: style: struct member 'Anonymous6::fs_qbmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:163:13: style: struct member 'Anonymous6::fs_qfmask' is never used. [unusedStructMember] parted-3.5/libparted/fs/ufs/ufs.c:164:13: style: struct member 'Anonymous6::fs_state' is never used. [unusedStructMember] parted-3.5/libparted/fs/xfs/xfs.c:41:22: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/labels/aix.c:188:36: style: Parameter 'part' can be declared as pointer to const [constParameter] parted-3.5/libparted/labels/dasd.c:854:16: style: Variable 'disk_specific' is assigned a value that is never used. [unreadVariable] parted-3.5/libparted/labels/dasd.c:932:10: style: Variable 'cyl_size' is assigned a value that is never used. [unreadVariable] parted-3.5/libparted/labels/dos.c:2472:14: style: Condition 'final_end<=dev->length' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/dos.c:2459:12: note: final_end is assigned 'dev->length-1' here. parted-3.5/libparted/labels/dos.c:2464:28: note: Assuming condition is false parted-3.5/libparted/labels/dos.c:2472:14: note: Condition 'final_end<=dev->length' is always true parted-3.5/libparted/labels/dos.c:255:15: style: Unused variable: disk_type [unusedVariable] parted-3.5/libparted/labels/fdasd.c:37:2: error: There is an unknown macro here somewhere. Configuration is required. If PDEBUG is a macro then please configure it. [unknownMacro] parted-3.5/libparted/labels/gpt.c:284:11: style: struct member '_PartitionRecord_t::StartHead' is never used. [unusedStructMember] parted-3.5/libparted/labels/gpt.c:290:11: style: struct member '_PartitionRecord_t::StartTrack' is never used. [unusedStructMember] parted-3.5/libparted/labels/loop.c:169:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] parted-3.5/libparted/labels/mac.c:380:22: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] parted-3.5/libparted/labels/pt-tools.c:89:63: style:inconclusive: Function 'ptt_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. [funcArgNamesDifferent] parted-3.5/libparted/labels/pt-tools.h:24:67: note: Function 'ptt_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. parted-3.5/libparted/labels/pt-tools.c:89:63: note: Function 'ptt_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. parted-3.5/libparted/labels/pt-tools.c:109:71: style:inconclusive: Function 'ptt_geom_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. [funcArgNamesDifferent] parted-3.5/libparted/labels/pt-tools.h:26:18: note: Function 'ptt_geom_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. parted-3.5/libparted/labels/pt-tools.c:109:71: note: Function 'ptt_geom_clear_sectors' argument 3 names different: declaration 'count' definition 'n'. parted-3.5/libparted/labels/pt-tools.c:121:42: style:inconclusive: Function 'ptt_partition_max_start_len' argument 1 names different: declaration 'label_type' definition 'pt_type'. [funcArgNamesDifferent] parted-3.5/libparted/labels/pt-tools.h:27:46: note: Function 'ptt_partition_max_start_len' argument 1 names different: declaration 'label_type' definition 'pt_type'. parted-3.5/libparted/labels/pt-tools.c:121:42: note: Function 'ptt_partition_max_start_len' argument 1 names different: declaration 'label_type' definition 'pt_type'. parted-3.5/libparted/labels/rdb.c:614:34: style: Parameter 'table' can be declared as pointer to const [constParameter] parted-3.5/libparted/labels/vtoc.c:192:44: error: Array 'source[5]' accessed at index 43, which is out of bounds. [arrayIndexOutOfBounds] parted-3.5/libparted/labels/vtoc.c:753:28: note: Calling function 'vtoc_ebcdic_enc', 3rd argument '44' value is 44 parted-3.5/libparted/labels/vtoc.c:191:16: note: Assuming that condition 'i0' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/vtoc.c:849:8: note: Assuming that condition 'i==0' is not redundant parted-3.5/libparted/labels/vtoc.c:851:15: note: Condition 'i>0' is always true parted-3.5/libparted/labels/vtoc.c:859:16: style: Condition 'j>0' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/vtoc.c:857:9: note: Assuming that condition 'j==0' is not redundant parted-3.5/libparted/labels/vtoc.c:859:16: note: Condition 'j>0' is always true parted-3.5/libparted/labels/vtoc.c:895:15: style: Condition 'i>0' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/vtoc.c:893:8: note: Assuming that condition 'i==0' is not redundant parted-3.5/libparted/labels/vtoc.c:895:15: note: Condition 'i>0' is always true parted-3.5/libparted/labels/vtoc.c:928:15: style: Condition 'i>0' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/vtoc.c:926:8: note: Assuming that condition 'i==0' is not redundant parted-3.5/libparted/labels/vtoc.c:928:15: note: Condition 'i>0' is always true parted-3.5/libparted/labels/vtoc.c:983:15: style: Condition 'i>0' is always true [knownConditionTrueFalse] parted-3.5/libparted/labels/vtoc.c:981:8: note: Assuming that condition 'i==0' is not redundant parted-3.5/libparted/labels/vtoc.c:983:15: note: Condition 'i>0' is always true parted-3.5/libparted/libparted.c:43:11: style: struct member 'pointer_size_type::pointer' is never used. [unusedStructMember] parted-3.5/libparted/libparted.c:44:12: style: struct member 'pointer_size_type::size' is never used. [unusedStructMember] parted-3.5/libparted/tests/common.c:38:27: style:inconclusive: Function '_create_disk' argument 1 names different: declaration 'size' definition 'n_bytes'. [funcArgNamesDifferent] parted-3.5/libparted/tests/common.h:13:33: note: Function '_create_disk' argument 1 names different: declaration 'size' definition 'n_bytes'. parted-3.5/libparted/tests/common.c:38:27: note: Function '_create_disk' argument 1 names different: declaration 'size' definition 'n_bytes'. parted-3.5/libparted/unit.c:254:2: warning: %f in format string (no. 2) requires 'double' but the argument type is 'signed int'. [invalidPrintfArgType_float] parted-3.5/parted/parted.c:357:60: style: Condition 'down_dist==up_dist' is always true [knownConditionTrueFalse] parted-3.5/parted/parted.c:357:34: note: Assuming that condition 'up_dist