2022-06-26 21:10 ftp://ftp.de.debian.org/debian/pool/main/c/conky/conky_1.12.2.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 -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 242afc3 (2022-06-25 21:42:55 +0200) count: 623 TO! elapsed-time: 870.1 1800.1 head-timing-info: Overall time: 0s old-timing-info: head results: conky-1.12.2/3rdparty/toluapp/src/tests/tarray.c:20:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:18:2: warning: Member variable 'Tst_A::number' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:101:2: warning: Member variable 'Tst_E::ptr' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:101:2: warning: Member variable 'Tst_E::pete' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:36:6: style:inconclusive: Technically the member function 'Test::Tst_A::get_number' can be const. [functionConst] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:25:9: performance:inconclusive: Technically the member function 'Test::Tst_A::Tst_AA::aa' can be static (but you may consider moving to unnamed namespace). [functionStatic] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:83:7: performance:inconclusive: Technically the member function 'Test::Tst_E::get_pete' can be static (but you may consider moving to unnamed namespace). [functionStatic] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:90:7: performance:inconclusive: Technically the member function 'Test::Tst_E::pars' can be static (but you may consider moving to unnamed namespace). [functionStatic] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:91:7: performance:inconclusive: Technically the member function 'Test::Tst_E::get_pointer' can be static (but you may consider moving to unnamed namespace). [functionStatic] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:44:16: warning: The class 'Tst_B' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:17:16: note: Parent variable 'Tst_A::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:44:16: note: Derived variable 'Tst_B::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:58:16: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_B'. [duplInheritedMember] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:44:16: note: Parent variable 'Tst_B::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:58:16: note: Derived variable 'Tst_C::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:58:16: warning: The class 'Tst_C' defines member variable with name 'last' also defined in its parent class 'Tst_A'. [duplInheritedMember] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:17:16: note: Parent variable 'Tst_A::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:58:16: note: Derived variable 'Tst_C::last' conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:59:2: style: Class 'Tst_C' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:101:2: style: Class 'Tst_E' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:86:15: style: Local variable 'a' shadows outer variable [shadowVariable] conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:93:8: note: Shadowed declaration conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:86:15: note: Shadow variable conky-1.12.2/3rdparty/toluapp/src/tests/tclass.h:114:45: style: Parameter 'p_out' can be declared as pointer to const [constParameter] conky-1.12.2/3rdparty/toluapp/src/tests/tmodule.c:13:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] conky-1.12.2/3rdparty/toluapp/src/tests/tvariable.c:29:7: debug: Wrong data detected by condition !tok->next()->astOperand1() [DacaWrongData] conky-1.12.2/src/luamm.hh:351:15: warning: Assert statement calls a function which may have desired side effects: 'gettop'. [assertWithSideEffect] conky-1.12.2/src/update-cb.hh:231:3: warning: Member variable 'callback < void * , int ( * ) ( ) >::result' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/update-cb.hh:109:7: style:inconclusive: Technically the member function 'conky::priv::callback_base::donefd' can be const. [functionConst] conky-1.12.2/src/update-cb.hh:111:8: style:inconclusive: Technically the member function 'conky::priv::callback_base::is_done' can be const. [functionConst] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < std :: string , std :: string >::get_result' can be const. [functionConst] conky-1.12.2/src/logging.h:41:3: style: Class 'fork_throw' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/logging.h:47:3: style: Class 'unknown_arg_throw' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/logging.h:54:3: style: Class 'combine_needs_2_args_error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/logging.h:61:3: style: Class 'obj_create_error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/logging.h:103:3: style: Class 'error' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/semaphore.hh:87:3: style: Class 'semaphore' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:132:3: style: Class 'callback_handle < callback_base >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:134:3: style: Class 'callback_handle < callback_base >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:132:3: style: Class 'callback_handle < exec_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:134:3: style: Class 'callback_handle < exec_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:132:3: style: Class 'callback_handle < legacy_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:134:3: style: Class 'callback_handle < legacy_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < bool , lua_traits < bool > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < std :: string , lua_traits < std :: string > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < double , lua_traits < double > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < int , lua_traits < int > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < unsigned int , lua_traits < int > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < char , lua_traits < char > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/exec.h:54:16: style: The function 'work' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:114:16: note: Virtual function in base class conky-1.12.2/src/exec.h:54:16: note: Function in derived class conky-1.12.2/src/text_object.h:82:16: style: The function 'work' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:114:16: note: Virtual function in base class conky-1.12.2/src/text_object.h:82:16: note: Function in derived class conky-1.12.2/src/conky.h:233:16: style: The function 'lua_setter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:263:16: note: Virtual function in base class conky-1.12.2/src/conky.h:233:16: note: Function in derived class conky-1.12.2/src/update-cb.hh:212:16: style: The function 'operator==' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:69:16: note: Virtual function in base class conky-1.12.2/src/update-cb.hh:212:16: note: Function in derived class conky-1.12.2/src/setting.hh:349:50: style: The function 'do_convert' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:261:50: note: Virtual function in base class conky-1.12.2/src/setting.hh:349:50: note: Function in derived class conky-1.12.2/src/setting.hh:263:16: style: The function 'lua_setter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:159:16: note: Virtual function in base class conky-1.12.2/src/setting.hh:263:16: note: Function in derived class conky-1.12.2/src/setting.hh:265:13: style: The function 'getter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:209:13: note: Virtual function in base class conky-1.12.2/src/setting.hh:265:13: note: Function in derived class conky-1.12.2/src/algebra.cc:122:30: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR != 0' is always true. [redundantCondition] conky-1.12.2/src/algebra.cc:152:24: style: Redundant condition: If 'EXPR == ' '', the comparison 'EXPR != 0' is always true. [redundantCondition] conky-1.12.2/src/luamm.hh:373:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/apcupsd.cc:103:7: style: The scope of the variable 'len' can be reduced. [variableScope] conky-1.12.2/src/apcupsd.cc:185:16: error: Uninitialized variable: apc.items [uninitvar] conky-1.12.2/src/audacious.cc:112:5: performance: Variable 'session' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < aud_result >::get_result' can be const. [functionConst] conky-1.12.2/src/audacious.cc:101:3: style: Class 'audacious_cb' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/audacious.cc:98:16: style: The function 'work' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:114:16: note: Virtual function in base class conky-1.12.2/src/audacious.cc:98:16: note: Function in derived class conky-1.12.2/src/bsdapm.cc:163:7: style: The scope of the variable 'h' can be reduced. [variableScope] conky-1.12.2/src/bsdapm.cc:163:10: style: The scope of the variable 'm' can be reduced. [variableScope] conky-1.12.2/src/bsdapm.cc:163:13: style: The scope of the variable 's' can be reduced. [variableScope] conky-1.12.2/src/ccurl_thread.cc:193:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < std :: string , std :: string , Keys ... >::get_result' can be const. [functionConst] conky-1.12.2/src/update-cb.hh:132:3: style: Class 'callback_handle < simple_curl_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:134:3: style: Class 'callback_handle < simple_curl_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/ccurl_thread.cc:153:16: style: The function 'process_data' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/ccurl_thread.h:50:16: note: Virtual function in base class conky-1.12.2/src/ccurl_thread.cc:153:16: note: Function in derived class conky-1.12.2/src/ccurl_thread.h:70:16: style: The function 'work' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:114:16: note: Virtual function in base class conky-1.12.2/src/ccurl_thread.h:70:16: note: Function in derived class conky-1.12.2/src/update-cb.hh:231:3: warning: Member variable 'callback < cmus_result >::result' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < cmus_result >::get_result' can be const. [functionConst] conky-1.12.2/src/cmus.cc:59:16: style: The function 'work' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/update-cb.hh:114:16: note: Virtual function in base class conky-1.12.2/src/cmus.cc:59:16: note: Function in derived class conky-1.12.2/src/cmus.cc:134:10: warning: Either the condition '!fp' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] conky-1.12.2/src/cmus.cc:70:7: note: Assuming that condition '!fp' is not redundant conky-1.12.2/src/cmus.cc:134:10: note: Null pointer dereference conky-1.12.2/src/cmus.cc:137:12: error: Uninitialized variables: cmus.progress, cmus.timeleft [uninitvar] conky-1.12.2/src/cmus.cc:70:7: note: Assuming condition is true conky-1.12.2/src/cmus.cc:137:12: note: Uninitialized variables: cmus.progress, cmus.timeleft conky-1.12.2/src/cmus.cc:137:12: error: Uninitialized struct member: cmus.progress [uninitStructMember] conky-1.12.2/src/cmus.cc:137:12: error: Uninitialized struct member: cmus.timeleft [uninitStructMember] conky-1.12.2/src/colours.cc:122:21: style: Expression is always true because 'else if' condition is opposite to previous condition at line 120. [multiCondition] conky-1.12.2/src/colours.cc:120:14: note: first condition conky-1.12.2/src/colours.cc:122:21: note: else if condition is opposite to first condition conky-1.12.2/src/colours.cc:127:23: style: Expression is always true because 'else if' condition is opposite to previous condition at line 125. [multiCondition] conky-1.12.2/src/colours.cc:125:16: note: first condition conky-1.12.2/src/colours.cc:127:23: note: else if condition is opposite to first condition conky-1.12.2/src/colours.cc:132:22: style: Expression is always true because 'else if' condition is opposite to previous condition at line 130. [multiCondition] conky-1.12.2/src/colours.cc:130:15: note: first condition conky-1.12.2/src/colours.cc:132:22: note: else if condition is opposite to first condition conky-1.12.2/src/colours.cc:51:20: style: Condition 'colour_depth!=24' is always true [knownConditionTrueFalse] conky-1.12.2/src/colours.cc:49:20: note: Assignment 'colour_depth=16', assigned value is 16 conky-1.12.2/src/colours.cc:51:20: note: Condition 'colour_depth!=24' is always true conky-1.12.2/src/colours.cc:51:42: style: Condition 'colour_depth!=16' is always false [knownConditionTrueFalse] conky-1.12.2/src/colours.cc:49:20: note: Assignment 'colour_depth=16', assigned value is 16 conky-1.12.2/src/colours.cc:51:42: note: Condition 'colour_depth!=16' is always false conky-1.12.2/src/colours.cc:65:24: style: Condition 'colour_depth%3==1' is always true [knownConditionTrueFalse] conky-1.12.2/src/colours.cc:49:20: note: Assignment 'colour_depth=16', assigned value is 16 conky-1.12.2/src/colours.cc:65:24: note: Condition 'colour_depth%3==1' is always true conky-1.12.2/src/colours.cc:72:10: style: The scope of the variable 'r' can be reduced. [variableScope] conky-1.12.2/src/colours.cc:72:13: style: The scope of the variable 'g' can be reduced. [variableScope] conky-1.12.2/src/colours.cc:72:16: style: The scope of the variable 'b' can be reduced. [variableScope] conky-1.12.2/src/combine.cc:107:7: style: The scope of the variable 'nextstart' can be reduced. [variableScope] conky-1.12.2/src/common.cc:814:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/common.cc:670:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/common.cc:137:7: performance: Inefficient usage of string::find() in condition; string::starts_with() could be faster. [stlIfStrFind] conky-1.12.2/src/common.cc:138:7: performance: Inefficient usage of string::find() in condition; string::starts_with() could be faster. [stlIfStrFind] conky-1.12.2/src/conky.cc:2890:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] conky-1.12.2/src/diskio.h:37:3: warning: Member variable 'diskio_stat::dev' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < spacer_state , lua_traits < spacer_state > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < unsigned long , lua_traits < long > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/conky.cc:705:10: style: The scope of the variable 'a' can be reduced. [variableScope] conky-1.12.2/src/conky.cc:777:16: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/conky.cc:777:19: style: The scope of the variable 'j' can be reduced. [variableScope] conky-1.12.2/src/conky.cc:777:22: style: The scope of the variable 'k' can be reduced. [variableScope] conky-1.12.2/src/conky.cc:2766:9: style: The scope of the variable 'startup_pause' can be reduced. [variableScope] conky-1.12.2/src/conky.cc:1301:14: style: Unused variable: cur_x [unusedVariable] conky-1.12.2/src/conky.cc:1301:21: style: Variable 'cur_y' is not assigned a value. [unassignedVariable] conky-1.12.2/src/data-source.hh:74:18: style: The function 'get_number' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/data-source.hh:52:18: note: Virtual function in base class conky-1.12.2/src/data-source.hh:74:18: note: Function in derived class conky-1.12.2/src/diskio.cc:47:23: style: The scope of the variable 'cur' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:331:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/dragonfly.cc:458:5: error: Resource leak: acpifd [resourceLeak] conky-1.12.2/src/dragonfly.cc:185:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:204:14: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:257:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:281:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:318:14: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:325:37: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:590:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/dragonfly.cc:580:49: style: The scope of the variable 'dn' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:584:8: style: The scope of the variable 'device_name' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:586:16: style: The scope of the variable 'reads' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:586:23: style: The scope of the variable 'writes' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:587:16: style: The scope of the variable 'total_reads' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:587:33: style: The scope of the variable 'total_writes' can be reduced. [variableScope] conky-1.12.2/src/dragonfly.cc:486:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/dragonfly.cc:826:37: style:inconclusive: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:89:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/dragonfly.cc:826:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/dragonfly.cc:482:7: style: Local variable 'state' shadows outer variable [shadowVariable] conky-1.12.2/src/conky.h:364:36: note: Shadowed declaration conky-1.12.2/src/dragonfly.cc:482:7: note: Shadow variable conky-1.12.2/src/entropy.cc:97:40: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/logging.h:69:3: warning: fprintf format string requires 0 parameters but 1 is given. [wrongPrintfScanfArgNum] conky-1.12.2/src/exec.cc:248:15: style: Local variable 'cmd' shadows outer variable [shadowVariable] conky-1.12.2/src/exec.cc:52:13: note: Shadowed declaration conky-1.12.2/src/exec.cc:248:15: note: Shadow variable conky-1.12.2/src/fonts.h:78:16: style: The function 'lua_setter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:263:16: note: Virtual function in base class conky-1.12.2/src/fonts.h:78:16: note: Function in derived class conky-1.12.2/src/fonts.cc:118:14: style: Local variable 'font' shadows outer variable [shadowVariable] conky-1.12.2/src/fonts.h:84:21: note: Shadowed declaration conky-1.12.2/src/fonts.cc:118:14: note: Shadow variable conky-1.12.2/src/fonts.cc:150:14: style: Local variable 'font' shadows outer variable [shadowVariable] conky-1.12.2/src/fonts.h:84:21: note: Shadowed declaration conky-1.12.2/src/fonts.cc:150:14: note: Shadow variable conky-1.12.2/src/freebsd.cc:515:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/freebsd.cc:202:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:221:14: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:288:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:314:11: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:321:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:346:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:512:17: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:594:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/freebsd.cc:303:16: style: The scope of the variable 'malloc_cpu_size' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:584:49: style: The scope of the variable 'dn' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:588:8: style: The scope of the variable 'device_name' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:590:16: style: The scope of the variable 'reads' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:590:23: style: The scope of the variable 'writes' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:591:16: style: The scope of the variable 'total_reads' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:591:33: style: The scope of the variable 'total_writes' can be reduced. [variableScope] conky-1.12.2/src/freebsd.cc:480:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/freebsd.cc:507:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/freebsd.cc:663:37: style:inconclusive: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:89:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/freebsd.cc:663:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/freebsd.cc:476:7: style: Local variable 'state' shadows outer variable [shadowVariable] conky-1.12.2/src/conky.h:364:36: note: Shadowed declaration conky-1.12.2/src/freebsd.cc:476:7: note: Shadow variable conky-1.12.2/src/freebsd.cc:696:10: style: Local variable 'len' shadows outer variable [shadowVariable] conky-1.12.2/src/freebsd.cc:94:8: note: Shadowed declaration conky-1.12.2/src/freebsd.cc:696:10: note: Shadow variable conky-1.12.2/src/freebsd.cc:303:32: style: Variable 'malloc_cpu_size' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/fs.cc:270:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/fs.cc:271:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/fs.cc:272:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/fs.cc:176:9: style: The scope of the variable 'slash' can be reduced. [variableScope] conky-1.12.2/src/haiku.cc:125:10: warning: Either the condition 'cpuinfo==nullptr' is redundant or there is possible null pointer dereference: cpuinfo. [nullPointerRedundantCheck] conky-1.12.2/src/haiku.cc:127:15: note: Assuming that condition 'cpuinfo==nullptr' is not redundant conky-1.12.2/src/haiku.cc:125:10: note: Null pointer dereference conky-1.12.2/src/haiku.cc:99:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/haiku.cc:119:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/haiku.cc:124:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/haiku.cc:184:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/haiku.cc:192:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/haiku.cc:204:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/haiku.cc:239:37: style:inconclusive: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:89:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/haiku.cc:239:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/haiku.cc:199:21: style: Parameter 'p_client_buffer' can be declared as pointer to const [constParameter] conky-1.12.2/src/haiku.cc:201:7: style: Unused variable: freq [unusedVariable] conky-1.12.2/src/haiku.cc:202:9: style: Unused variable: freq_sysctl [unusedVariable] conky-1.12.2/src/hddtemp.cc:52:3: warning: Member variable 'hdd_info::dev' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/hddtemp.cc:52:3: warning: Member variable 'hdd_info::temp' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/hddtemp.cc:52:3: warning: Member variable 'hdd_info::unit' is not initialized in the constructor. [uninitMemberVar] conky-1.12.2/src/logging.h:69:3: error: fprintf format string requires 3 parameters but only 1 is given. [wrongPrintfScanfArgNum] conky-1.12.2/src/hddtemp.cc:127:7: error: Common realloc mistake: 'buf' nulled but not freed upon failure [memleakOnRealloc] conky-1.12.2/src/hddtemp.cc:157:9: warning: Possible null pointer dereference: p [nullPointer] conky-1.12.2/src/hddtemp.cc:148:20: note: Assignment 'p=0', assigned value is 0 conky-1.12.2/src/hddtemp.cc:150:7: note: Assuming condition is false conky-1.12.2/src/hddtemp.cc:157:9: note: Null pointer dereference conky-1.12.2/src/hddtemp.cc:122:9: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/hddtemp.cc:127:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/hsv_gradient.cc:109:43: style: Parameter 'hsv' can be declared as pointer to const [constParameter] conky-1.12.2/src/i8k.cc:80:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:81:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:82:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:83:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:84:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:85:26: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:86:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:87:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:88:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:89:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/i8k.cc:59:37: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/ibm.cc:103:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/ibm.cc:205:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/ibm.cc:246:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/ibm.cc:191:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/ibm.cc:275:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/ibm.cc:83:24: style: Checking if unsigned expression 'p_max_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/ibm.cc:176:24: style: Checking if unsigned expression 'p_max_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/ibm.cc:225:24: style: Checking if unsigned expression 'p_max_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/ibm.cc:265:24: style: Checking if unsigned expression 'p_max_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/ical.cc:171:11: style: Condition 'inum' is always true [knownConditionTrueFalse] conky-1.12.2/src/ical.cc:170:11: note: Assuming that condition 'i==ical_obj->num' is not redundant conky-1.12.2/src/ical.cc:171:11: note: Condition 'inum' is always true conky-1.12.2/src/ical.cc:111:7: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] conky-1.12.2/src/ical.cc:111:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/ical.cc:119:5: error: Memory pointed to by 'obj' is freed twice. [doubleFree] conky-1.12.2/src/ical.cc:113:5: note: Memory pointed to by 'obj' is freed twice. conky-1.12.2/src/ical.cc:119:5: note: Memory pointed to by 'obj' is freed twice. conky-1.12.2/src/ical.cc:124:3: error: Memory pointed to by 'filename' is freed twice. [doubleFree] conky-1.12.2/src/ical.cc:112:5: note: Memory pointed to by 'filename' is freed twice. conky-1.12.2/src/ical.cc:124:3: note: Memory pointed to by 'filename' is freed twice. conky-1.12.2/src/ical.cc:43:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/ical.cc:72:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/ical.cc:151:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/ical.cc:161:32: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/ical.cc:182:36: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/logging.h:69:3: error: fprintf format string requires 2 parameters but only 1 is given. [wrongPrintfScanfArgNum] conky-1.12.2/src/iconv_tools.cc:117:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/iconv_tools.cc:46:14: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/iconv_tools.cc:48:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/iconv_tools.cc:73:7: style: The scope of the variable 'bytes' can be reduced. [variableScope] conky-1.12.2/src/iconv_tools.cc:82:10: style: Checking if unsigned expression '*a' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/iconv_tools.cc:64:20: style: Local variable 'iconv_cd' shadows outer variable [shadowVariable] conky-1.12.2/src/iconv_tools.cc:43:18: note: Shadowed declaration conky-1.12.2/src/iconv_tools.cc:64:20: note: Shadow variable conky-1.12.2/src/imlib2.h:47:16: style: The function 'lua_setter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:263:16: note: Virtual function in base class conky-1.12.2/src/imlib2.h:47:16: note: Function in derived class conky-1.12.2/src/imlib2.h:48:16: style: The function 'cleanup' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:166:16: note: Virtual function in base class conky-1.12.2/src/imlib2.h:48:16: note: Function in derived class conky-1.12.2/src/intel_backlight.cc:106:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/intel_backlight.cc:91:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/intel_backlight.cc:97:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/intel_backlight.cc:104:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:142:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/irc.cc:143:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/irc.cc:145:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/irc.cc:151:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/irc.cc:152:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/irc.cc:52:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:60:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:61:18: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:98:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:110:21: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:129:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:130:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:184:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:185:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:194:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:200:13: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:216:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:222:17: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/irc.cc:106:8: style: The scope of the variable 'attachment' can be reduced. [variableScope] conky-1.12.2/src/irc.cc:83:12: style: Variable 'newmsg' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/journal.cc:53:16: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/journal.cc:111:22: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/journal.cc:167:16: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/journal.cc:133:76: style: Checking if unsigned expression '*length=strftime(p+*read,p_max_size-*read,"%b %d %H:%M:%S",&tm)' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/libmpdclient.cc:1273:66: warning: Either the condition 'type<0' is redundant or the array 'mpdTagItemKeys[14]' is accessed at index 14, which is out of bounds. [arrayIndexOutOfBoundsCond] conky-1.12.2/src/libmpdclient.cc:1266:12: note: Assuming that condition 'type<0' is not redundant conky-1.12.2/src/libmpdclient.cc:1270:12: note: Assuming condition is false conky-1.12.2/src/libmpdclient.cc:1273:66: note: Array index out of bounds conky-1.12.2/src/libmpdclient.cc:251:18: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] conky-1.12.2/src/libmpdclient.cc:665:32: style: The statement 'if (connection->doneListOk!=0) connection->doneListOk=0' is logically equivalent to 'connection->doneListOk=0'. [duplicateConditionalAssign] conky-1.12.2/src/libmpdclient.cc:665:63: note: Assignment 'connection->doneListOk=0' conky-1.12.2/src/libmpdclient.cc:665:32: note: Condition 'connection->doneListOk!=0' is redundant conky-1.12.2/src/libmpdclient.cc:1730:3: warning: Either the condition 'output!=nullptr' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck] conky-1.12.2/src/libmpdclient.cc:1742:18: note: Assuming that condition 'output!=nullptr' is not redundant conky-1.12.2/src/libmpdclient.cc:1730:3: note: Null pointer dereference conky-1.12.2/src/libmpdclient.cc:1731:3: warning: Either the condition 'output!=nullptr' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck] conky-1.12.2/src/libmpdclient.cc:1742:18: note: Assuming that condition 'output!=nullptr' is not redundant conky-1.12.2/src/libmpdclient.cc:1731:3: note: Null pointer dereference conky-1.12.2/src/libmpdclient.cc:1732:3: warning: Either the condition 'output!=nullptr' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck] conky-1.12.2/src/libmpdclient.cc:1742:18: note: Assuming that condition 'output!=nullptr' is not redundant conky-1.12.2/src/libmpdclient.cc:1732:3: note: Null pointer dereference conky-1.12.2/src/libmpdclient.cc:1743:7: warning: Either the condition 'output!=nullptr' is redundant or there is possible null pointer dereference: output. [nullPointerRedundantCheck] conky-1.12.2/src/libmpdclient.cc:1742:18: note: Assuming that condition 'output!=nullptr' is not redundant conky-1.12.2/src/libmpdclient.cc:1743:7: note: Null pointer dereference conky-1.12.2/src/libmpdclient.cc:266:44: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/libmpdclient.cc:381:7: style: The scope of the variable 'err' can be reduced. [variableScope] conky-1.12.2/src/libmpdclient.cc:473:7: style: The scope of the variable 'ret' can be reduced. [variableScope] conky-1.12.2/src/libmpdclient.cc:534:7: style: The scope of the variable 'err' can be reduced. [variableScope] conky-1.12.2/src/libmpdclient.cc:885:22: style: The scope of the variable 're' can be reduced. [variableScope] conky-1.12.2/src/libmpdclient.cc:233:18: style: Unused variable: he [unusedVariable] conky-1.12.2/src/libmpdclient.cc:234:7: style: Unused variable: he_errno [unusedVariable] conky-1.12.2/src/libmpdclient.cc:235:8: style: Unused variable: hostbuff [unusedVariable] conky-1.12.2/src/libtcp-portmon.cc:115:3: style: Struct '_tcp_port_monitor_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/libtcp-portmon.cc:211:18: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/libtcp-portmon.cc:164:70: style: Parameter 'p_void' can be declared as pointer to const [constParameter] conky-1.12.2/src/libtcp-portmon.cc:186:48: style: Parameter 'p_void' can be declared as pointer to const [constParameter] conky-1.12.2/src/linux.cc:1965:24: error: Array 'batteries[4][32]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] conky-1.12.2/src/linux.cc:1960:21: note: Assuming that condition 'idx<4' is not redundant conky-1.12.2/src/linux.cc:1965:24: note: Array index out of bounds conky-1.12.2/src/linux.cc:2881:16: warning: Either the condition 'i' is redundant or the array 'cmdline[1024]' is accessed at index -1, which is out of bounds. [negativeIndex] conky-1.12.2/src/linux.cc:2875:10: note: Assuming that condition 'i' is not redundant conky-1.12.2/src/linux.cc:2879:10: note: i is decremented', new value is -1 conky-1.12.2/src/linux.cc:2881:16: note: Negative array index conky-1.12.2/src/linux.cc:835:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/linux.cc:3066:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/linux.cc:1013:5: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/linux.cc:1448:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/linux.cc:1514:7: style: Condition '!prefer_proc' is always true [knownConditionTrueFalse] conky-1.12.2/src/logging.h:69:3: error: fprintf format string requires 6 parameters but only 1 is given. [wrongPrintfScanfArgNum] conky-1.12.2/src/linux.cc:1517:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/linux.cc:1608:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/linux.cc:1631:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/linux.cc:1694:7: warning:inconclusive: Width 99 given in format string (no. 1) is smaller than destination buffer 'buf[256]'. [invalidScanfFormatWidth_smaller] conky-1.12.2/src/linux.cc:1772:9: warning:inconclusive: Width 99 given in format string (no. 1) is smaller than destination buffer 'buf[256]'. [invalidScanfFormatWidth_smaller] conky-1.12.2/src/linux.cc:2686:17: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/linux.cc:2700:19: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/linux.cc:327:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:475:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:570:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:579:15: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:581:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:583:21: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:962:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:1012:12: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:1447:9: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:1469:23: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:1489:23: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/linux.cc:367:8: style: The scope of the variable 'iface' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:372:16: style: The scope of the variable 'x' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:373:16: style: The scope of the variable 'z' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:374:7: style: The scope of the variable 'strcmpreturn' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:408:8: style: The scope of the variable 'iface' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:456:16: style: The scope of the variable 'x' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:457:16: style: The scope of the variable 'found' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:828:18: style: The scope of the variable 'entry' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:979:16: style: The scope of the variable 'malloc_cpu_size' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:1160:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:1600:8: style: The scope of the variable 's' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2428:7: style: The scope of the variable 'idx' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2428:12: style: The scope of the variable 'n' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2428:19: style: The scope of the variable 'total_capacity' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2428:39: style: The scope of the variable 'remaining_capacity' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2431:8: style: The scope of the variable 'battery' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2497:15: style: The scope of the variable 'batt_path' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2672:7: style: The scope of the variable 'col_count' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:2717:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/linux.cc:1509:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/linux.cc:1611:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/linux.cc:1677:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/linux.cc:1729:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/linux.cc:1972:30: style:inconclusive: Function 'get_battery_stuff' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:86:30: note: Function 'get_battery_stuff' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/linux.cc:1972:30: note: Function 'get_battery_stuff' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/linux.cc:2308:37: style:inconclusive: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:89:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/linux.cc:2308:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/linux.cc:2631:7: style: Local variable 'state' shadows outer variable [shadowVariable] conky-1.12.2/src/conky.h:364:36: note: Shadowed declaration conky-1.12.2/src/linux.cc:2631:7: note: Shadow variable conky-1.12.2/src/linux.cc:2829:8: style: Local variable 'state' shadows outer variable [shadowVariable] conky-1.12.2/src/conky.h:364:36: note: Shadowed declaration conky-1.12.2/src/linux.cc:2829:8: note: Shadow variable conky-1.12.2/src/linux.cc:925:17: style: Variable 'subtoken1' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/linux.cc:926:17: style: Variable 'subtoken2' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/linux.cc:1298:23: style: Variable 'buf[len_to_trunc]' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/linux.cc:2672:17: style: Variable 'col_count' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/luamm.cc:317:17: warning: Assert statement calls a function which may have desired side effects: '_isnumber'. [assertWithSideEffect] conky-1.12.2/src/luamm.cc:392:17: warning: Assert statement calls a function which may have desired side effects: '_isnumber'. [assertWithSideEffect] conky-1.12.2/src/luamm.cc:430:17: warning: Assert statement calls a function which may have desired side effects: '_isnumber'. [assertWithSideEffect] conky-1.12.2/src/luamm.cc:184:30: style: Variable 'e' can be declared as reference to const [constVariable] conky-1.12.2/src/mail.cc:414:5: warning:inconclusive: The buffer 'mbox' may not be null-terminated after the call to strncpy(). [terminateStrncpy] conky-1.12.2/src/mail.cc:418:7: warning:inconclusive: The buffer 'mbox' may not be null-terminated after the call to strncpy(). [terminateStrncpy] conky-1.12.2/src/mail.cc:426:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/mail.cc:137:7: style:inconclusive: Technically the member function '::mail_cb::connect' can be const. [functionConst] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < mail_result , std :: string , std :: string , std :: string , std :: string , std :: string , in_port_t >::get_result' can be const. [functionConst] conky-1.12.2/src/mail.cc:416:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/mail.cc:441:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:442:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:443:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:444:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:445:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:446:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:447:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:448:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:449:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:450:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:451:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:452:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/mail.cc:563:14: style: The scope of the variable 'rep' can be reduced. [variableScope] conky-1.12.2/src/mail.cc:584:14: style: The scope of the variable 'rep' can be reduced. [variableScope] conky-1.12.2/src/mail.cc:659:7: style: The scope of the variable 'numbytes' can be reduced. [variableScope] conky-1.12.2/src/mail.cc:727:9: style: The scope of the variable 'res' can be reduced. [variableScope] conky-1.12.2/src/mail.cc:659:16: style: Variable 'numbytes' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/main.cc:358:24: style: Variable 'e' can be declared as reference to const [constVariable] conky-1.12.2/src/main.cc:360:31: style: Variable 'e' can be declared as reference to const [constVariable] conky-1.12.2/src/mboxscan.cc:127:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/mboxscan.cc:131:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < moc_result >::get_result' can be const. [functionConst] conky-1.12.2/src/moc.cc:103:10: warning: Either the condition 'fp==nullptr' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] conky-1.12.2/src/moc.cc:65:10: note: Assuming that condition 'fp==nullptr' is not redundant conky-1.12.2/src/moc.cc:103:10: note: Null pointer dereference conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < mpd_result >::get_result' can be const. [functionConst] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < in_port_t , lua_traits < in_port_t > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/mpd.cc:274:18: style: Condition 'entity!=nullptr' is always true [knownConditionTrueFalse] conky-1.12.2/src/net_stat.cc:486:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < if_up_strictness_ , lua_traits < if_up_strictness_ > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/net_stat.cc:151:23: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/net_stat.cc:128:12: style: The scope of the variable 'x' can be reduced. [variableScope] conky-1.12.2/src/net_stat.cc:129:16: style: The scope of the variable 'found' can be reduced. [variableScope] conky-1.12.2/src/net_stat.cc:128:14: style: Variable 'x' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/netbsd.cc:96:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/netbsd.cc:136:3: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/netbsd.cc:285:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/netbsd.cc:64:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/netbsd.cc:71:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/netbsd.cc:232:23: style: The scope of the variable 'p' can be reduced. [variableScope] conky-1.12.2/src/netbsd.cc:234:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/netbsd.cc:315:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/netbsd.cc:323:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/nvidia.cc:472:39: error: Array 'translate_module_argument[40]' accessed at index 40, which is out of bounds. [arrayIndexOutOfBounds] conky-1.12.2/src/nvidia.cc:464:3: note: After for loop, aid has value 40 conky-1.12.2/src/nvidia.cc:472:39: note: Array index out of bounds conky-1.12.2/src/nvidia.cc:374:16: style: The function 'lua_setter' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:263:16: note: Virtual function in base class conky-1.12.2/src/nvidia.cc:374:16: note: Function in derived class conky-1.12.2/src/nvidia.cc:375:16: style: The function 'cleanup' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/setting.hh:166:16: note: Virtual function in base class conky-1.12.2/src/nvidia.cc:375:16: note: Function in derived class conky-1.12.2/src/nvidia.cc:506:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:513:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:527:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:534:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:543:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:550:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:557:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:571:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:578:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:591:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:598:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:605:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:612:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:790:21: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:793:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:796:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:799:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:802:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:805:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:809:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:821:21: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:823:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:825:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:827:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:829:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:831:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:834:28: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:1111:41: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:1119:41: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:1136:41: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/nvidia.cc:417:7: style: The scope of the variable 'ilen' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:864:9: style: The scope of the variable 'key' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:865:9: style: The scope of the variable 'val' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:936:7: style: The scope of the variable 'temp1' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:937:7: style: The scope of the variable 'temp2' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:938:7: style: The scope of the variable 'result' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:1036:7: style: The scope of the variable 'temp1' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:1037:7: style: The scope of the variable 'temp2' can be reduced. [variableScope] conky-1.12.2/src/nvidia.cc:789:62: style: Parameter 'value' can be declared as pointer to const [constParameter] conky-1.12.2/src/openbsd.cc:144:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/openbsd.cc:186:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/openbsd.cc:358:5: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/openbsd.cc:633:57: error: Found a exit path from function with non-void return type that has missing return statement [missingReturn] conky-1.12.2/src/openbsd.cc:171:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] conky-1.12.2/src/openbsd.cc:504:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/openbsd.cc:204:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/openbsd.cc:223:14: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/openbsd.cc:561:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/openbsd.cc:329:10: style: Local variable 'len' shadows outer variable [shadowVariable] conky-1.12.2/src/openbsd.cc:78:8: note: Shadowed declaration conky-1.12.2/src/openbsd.cc:329:10: note: Shadow variable conky-1.12.2/src/proc.cc:262:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/proc.cc:456:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/proc.cc:520:21: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/proc.cc:164:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/proc.cc:204:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/proc.cc:43:7: style: The scope of the variable 'bytes_read' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:115:9: style: The scope of the variable 'buf' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:116:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:156:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:160:9: style: The scope of the variable 'buf' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:190:9: style: The scope of the variable 'buf2' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:191:7: style: The scope of the variable 'bytes_read' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:192:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:251:18: style: The scope of the variable 'entry' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:253:7: style: The scope of the variable 'length' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:253:15: style: The scope of the variable 'totallength' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:288:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:288:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:341:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:341:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:370:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:426:16: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:449:18: style: The scope of the variable 'entry' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:450:9: style: The scope of the variable 'buf' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:451:19: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:484:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:484:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:510:18: style: The scope of the variable 'entry' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:511:7: style: The scope of the variable 'totallength' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:612:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:612:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:615:15: style: The scope of the variable 'errorstring' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:769:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:769:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:860:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:860:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:886:9: style: The scope of the variable 'begin' can be reduced. [variableScope] conky-1.12.2/src/proc.cc:886:17: style: The scope of the variable 'end' can be reduced. [variableScope] conky-1.12.2/src/prss.cc:115:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:116:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:117:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:118:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:119:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:120:5: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:138:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:139:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:140:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:141:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:142:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:143:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:144:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:145:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:146:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:147:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:148:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:149:3: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:151:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:164:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:170:49: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:178:17: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:193:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:195:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:206:17: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:210:49: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:223:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:227:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/prss.cc:59:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/pulseaudio.cc:77:5: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] conky-1.12.2/src/pulseaudio.cc:121:3: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] conky-1.12.2/src/pulseaudio.cc:60:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:84:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:95:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:113:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:157:8: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:200:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:204:22: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/pulseaudio.cc:77:3: style: Variable 'eol' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/pulseaudio.cc:121:6: style: Variable 'eol' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/read_tcpip.cc:96:13: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] conky-1.12.2/src/read_tcpip.cc:99:15: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] conky-1.12.2/src/read_tcpip.cc:61:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/read_tcpip.cc:86:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/read_tcpip.cc:119:22: style: The scope of the variable 'usecdiff' can be reduced. [variableScope] conky-1.12.2/src/read_tcpip.cc:158:13: style: The scope of the variable 'received' can be reduced. [variableScope] conky-1.12.2/src/scroll.cc:98:21: style: Array index 'offset' is used before limits check. [arrayIndexThenCheck] conky-1.12.2/src/scroll.cc:178:16: error: Dereferencing 'sd' after it is deallocated / released [deallocuse] conky-1.12.2/src/scroll.cc:180:20: error: Dereferencing 'sd' after it is deallocated / released [deallocuse] conky-1.12.2/src/scroll.cc:195:15: error: Dereferencing 'sd' after it is deallocated / released [deallocuse] conky-1.12.2/src/rss.cc:153:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'callback < std :: shared_ptr < PRSS > , std :: string , Keys ... >::get_result' can be const. [functionConst] conky-1.12.2/src/update-cb.hh:132:3: style: Class 'callback_handle < rss_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/update-cb.hh:134:3: style: Class 'callback_handle < rss_cb >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/rss.cc:49:16: style: The function 'process_data' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] conky-1.12.2/src/ccurl_thread.h:50:16: note: Virtual function in base class conky-1.12.2/src/rss.cc:49:16: note: Function in derived class conky-1.12.2/src/rss.cc:110:28: style: Condition 'data->item_count>0' is always true [knownConditionTrueFalse] conky-1.12.2/src/rss.cc:77:33: note: Assuming that condition 'data->item_count<1' is not redundant conky-1.12.2/src/rss.cc:110:28: note: Condition 'data->item_count>0' is always true conky-1.12.2/src/rss.cc:115:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/rss.cc:152:9: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/rss.cc:166:26: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/setting.cc:74:41: style: Consider using std::transform algorithm instead of a raw loop. [useStlAlgorithm] conky-1.12.2/src/setting.cc:185:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/smapi.cc:137:12: style: The scope of the variable 'val' can be reduced. [variableScope] conky-1.12.2/src/smapi.cc:150:12: style: The scope of the variable 'val' can be reduced. [variableScope] conky-1.12.2/src/solaris.cc:380:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] conky-1.12.2/src/solaris.cc:383:15: style: Condition 'entry==nullptr' is always false [knownConditionTrueFalse] conky-1.12.2/src/solaris.cc:460:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/solaris.cc:302:5: error: Common realloc mistake: 'last_cpu_use' nulled but not freed upon failure [memleakOnRealloc] conky-1.12.2/src/solaris.cc:105:29: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:116:11: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:154:8: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:243:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:303:9: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:308:20: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:319:31: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:322:10: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:412:12: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/solaris.cc:424:37: style:inconclusive: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] conky-1.12.2/src/common.h:89:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/solaris.cc:424:37: note: Function 'get_battery_short_status' argument 1 names different: declaration 'buf' definition 'buffer'. conky-1.12.2/src/solaris.cc:324:14: style: Variable 'cpu_idle' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/sony.cc:74:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] conky-1.12.2/src/sony.cc:54:46: style: Checking if unsigned expression 'client_buffer_size' is less than zero. [unsignedLessThanZero] conky-1.12.2/src/specials.cc:156:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/specials.cc:349:3: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat] conky-1.12.2/src/specials.cc:92:7: style: struct member 'gauge::width' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:92:14: style: struct member 'gauge::height' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:97:7: style: struct member 'graph::id' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:98:8: style: struct member 'graph::flags' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:99:7: style: struct member 'graph::width' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:99:14: style: struct member 'graph::height' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:100:16: style: struct member 'graph::first_colour' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:100:30: style: struct member 'graph::last_colour' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:101:10: style: struct member 'graph::scale' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:102:8: style: struct member 'graph::tempgrad' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:106:7: style: struct member 'stippled_hr::height' is never used. [unusedStructMember] conky-1.12.2/src/specials.cc:106:15: style: struct member 'stippled_hr::arg' is never used. [unusedStructMember] conky-1.12.2/src/tailhead.cc:155:15: warning: Either the condition 'fd!=-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] conky-1.12.2/src/tailhead.cc:139:16: note: Assuming that condition 'fd!=-1' is not redundant conky-1.12.2/src/tailhead.cc:155:15: note: Invalid argument conky-1.12.2/src/tailhead.cc:91:10: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] conky-1.12.2/src/tailhead.cc:59:7: style: The scope of the variable 'i' can be reduced. [variableScope] conky-1.12.2/src/tailhead.cc:59:10: style: The scope of the variable 'linescounted' can be reduced. [variableScope] conky-1.12.2/src/tcp-portmon.cc:88:9: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/tcp-portmon.cc:127:39: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < TEMP_UNIT , lua_traits < TEMP_UNIT > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/temphelper.cc:58:7: style: The scope of the variable 'i_out' can be reduced. [variableScope] conky-1.12.2/src/temphelper.cc:59:9: style: The scope of the variable 'f_out' can be reduced. [variableScope] conky-1.12.2/src/temphelper.cc:58:13: style: Variable 'i_out' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/temphelper.cc:59:15: style: Variable 'f_out' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/timeinfo.cc:83:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] conky-1.12.2/src/timeinfo.cc:91:19: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] conky-1.12.2/src/timeinfo.cc:111:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] conky-1.12.2/src/timeinfo.cc:157:16: style: The scope of the variable 'output_length' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:158:7: style: The scope of the variable 'minutes' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:158:16: style: The scope of the variable 'hours' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:158:23: style: The scope of the variable 'days' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:158:29: style: The scope of the variable 'weeks' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:159:8: style: The scope of the variable 'show_minutes' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:159:26: style: The scope of the variable 'show_hours' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:159:42: style: The scope of the variable 'show_days' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:159:57: style: The scope of the variable 'show_weeks' can be reduced. [variableScope] conky-1.12.2/src/timeinfo.cc:160:8: style: The scope of the variable 'hidestring' can be reduced. [variableScope] conky-1.12.2/src/top.cc:516:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] conky-1.12.2/src/update-cb.hh:237:17: style:inconclusive: Technically the member function 'conky::callback::get_result' can be const. [functionConst] conky-1.12.2/src/top.cc:540:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/top.cc:541:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/top.cc:542:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/top.cc:543:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/top.cc:544:1: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/user.cc:50:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] conky-1.12.2/src/user.cc:72:11: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] conky-1.12.2/src/user.cc:40:18: style: The scope of the variable 'pw' can be reduced. [variableScope] conky-1.12.2/src/user.cc:62:17: style: The scope of the variable 'grp' can be reduced. [variableScope] conky-1.12.2/src/users.cc:110:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:113:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:116:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:125:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:132:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:136:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:149:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:153:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:167:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:171:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:177:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/users.cc:181:33: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/setting.hh:251:3: style: Class 'simple_config_setting < alignment , lua_traits < alignment > >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] conky-1.12.2/src/x11.cc:1330:15: style: Local variable 'state' shadows outer variable [shadowVariable] conky-1.12.2/src/conky.h:364:36: note: Shadowed declaration conky-1.12.2/src/x11.cc:1330:15: note: Shadow variable conky-1.12.2/src/x11.cc:95:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/x11.cc:130:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/x11.cc:210:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/x11.cc:224:3: style: Variable 's' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/xmms2.cc:39:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:43:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:47:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:51:24: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:55:26: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:59:22: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:63:23: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:99:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:112:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:197:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:216:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:226:25: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:250:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:259:27: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:270:30: style: C-style pointer casting [cstyleCast] conky-1.12.2/src/xmms2.cc:113:12: style: The scope of the variable 'val' can be reduced. [variableScope] conky-1.12.2/src/xmms2.cc:113:18: style: The scope of the variable 'infos' can be reduced. [variableScope] conky-1.12.2/src/xmms2.cc:114:19: style: The scope of the variable 'res' can be reduced. [variableScope] conky-1.12.2/tests/catch2/catch.hpp:281:0: error: failed to evaluate #if condition [preprocessorErrorDirective] conky-1.12.2/src/core.cc:2153:9: style: Variable 's' is reassigned a value before the old one has been used. [redundantAssignment] conky-1.12.2/src/core.cc:2074:9: note: s is assigned conky-1.12.2/src/core.cc:2153:9: note: s is overwritten conky-1.12.2/src/core.cc:686:3: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] conky-1.12.2/src/core.cc:2044:14: style: Variable 'len' is assigned a value that is never used. [unreadVariable] DONE