2024-04-04 00:51 ftp://ftp.de.debian.org/debian/pool/main/r/rtl-433/rtl-433_23.11.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: edfcc31 (2024-04-03 23:39:33 +0200) count: 319 308 elapsed-time: 13.2 17.3 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 5.66314s (avg. 5.66314s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 4.08418s (avg. 1.02105s - 4 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.59342s (avg. 0.197807s - 3 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.376767s (avg. 0.125589s - 3 result(s)) valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.182857s (avg. 0.0609523s - 3 result(s)) Overall time: 6.14216s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 6.63698s (avg. 6.63698s - 1 result(s)) valueFlowLifetime(tokenlist, errorLogger, settings): 3.06424s (avg. 0.76606s - 4 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 2.83778s (avg. 0.945928s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.344955s (avg. 0.114985s - 3 result(s)) valueFlowSymbolic(tokenlist, symboldatabase, settings): 0.196822s (avg. 0.196822s - 1 result(s)) Overall time: 6.76468s head results: rtl_433-23.11/src/abuf.c:33:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/compat_paths.c:20:11: style: Variable 'env_config_home' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/compat_time.c:38:62: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/baseband.c:193:19: style: Condition 'denom==0' is always false [knownConditionTrueFalse] rtl_433-23.11/src/baseband.c:182:30: note: Assignment 'abs_y=abs(y)', assigned value is greater than -1 rtl_433-23.11/src/baseband.c:185:12: note: Assuming condition is false rtl_433-23.11/src/baseband.c:187:11: note: Assuming that condition 'x>=0' is not redundant rtl_433-23.11/src/baseband.c:192:32: note: Assignment 'denom=abs_y-x', assigned value is greater than 0 rtl_433-23.11/src/baseband.c:193:19: note: Condition 'denom==0' is always false rtl_433-23.11/src/baseband.c:286:19: style: Condition 'denom==0' is always false [knownConditionTrueFalse] rtl_433-23.11/src/baseband.c:277:30: note: Assignment 'abs_y=abs(y)', assigned value is greater than -1 rtl_433-23.11/src/baseband.c:280:11: note: Assuming that condition 'x>=0' is not redundant rtl_433-23.11/src/baseband.c:285:32: note: Assignment 'denom=abs_y-x', assigned value is greater than 0 rtl_433-23.11/src/baseband.c:286:19: note: Condition 'denom==0' is always false rtl_433-23.11/src/confparse.c:107:11: style: Variable 'kw' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/data_tag.c:43:56: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/data_tag.c:83:15: style: Variable 'eol' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/data_tag.c:268:20: style: Variable 'k' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/data_tag.c:269:20: style: Variable 'v' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/abmt.c:46:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:190:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:225:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:251:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:276:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:481:18: style: Variable 'a' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:482:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/bitbuffer.c:356:32: style: Variable 'indent_this_row' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/ambient_weather.c:92:18: style: Condition 'humidity<0' is always false [knownConditionTrueFalse] rtl_433-23.11/src/devices/ambient_weather.c:69:21: note: Assignment 'humidity=b[4]', assigned value is greater than -1 rtl_433-23.11/src/devices/ambient_weather.c:92:18: note: Condition 'humidity<0' is always false rtl_433-23.11/src/devices/ambientweather_tx8300.c:49:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/atech_ws308.c:48:37: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/auriol_4ld5661.c:42:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/am_analyze.c:225:86: style: Condition 'signal_distance_data[i]>=b[0]' is always true [knownConditionTrueFalse] rtl_433-23.11/src/am_analyze.c:222:45: note: Assuming that condition 'signal_distance_data[i]=b[0]' is always true rtl_433-23.11/src/devices/auriol_aft77b2.c:57:29: style: Parameter 'frame' can be declared as const array [constParameter] rtl_433-23.11/src/devices/auriol_aft77b2.c:79:36: style: Parameter 'bitbuffer' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/auriol_aft77b2.c:100:14: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/am_analyze.c:45:43: style: Parameter 'am_buf' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/auriol_hg02832.c:43:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/auriol_ahfl.c:36:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/auriol_afw2a1.c:57:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/blyss.c:30:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/blueline.c:401:40: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'blueline_create' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/blueline.c:441:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/blueline.c:401:40: note: Parameter 'arg' can be declared as pointer to const rtl_433-23.11/src/devices/bt_rain.c:36:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/calibeur.c:57:14: style: Variable 'b2' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/cardin.c:28:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/celsia_czc1.c:75:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/current_cost.c:24:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/digitech_xc0324.c:137:33: style:inconclusive: Boolean expression 'decoder->verbose==3' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] rtl_433-23.11/src/devices/digitech_xc0324.c:205:33: style:inconclusive: Boolean expression 'decoder->verbose==3' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] rtl_433-23.11/src/devices/digitech_xc0324.c:109:19: style: float result is assigned to double variable. If the variable is double to avoid loss of information, then you have loss of information. [truncLongCastAssignment] rtl_433-23.11/src/devices/dish_remote_6_3.c:104:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/acurite.c:155:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] rtl_433-23.11/src/devices/acurite.c:1374:77: style: Condition '(ret=acurite_1190_decode(decoder,bitbuffer,bb))>0' is always true [knownConditionTrueFalse] rtl_433-23.11/src/devices/acurite.c:1374:51: note: Calling function 'acurite_1190_decode' returns 1 rtl_433-23.11/src/devices/acurite.c:1374:77: note: Condition '(ret=acurite_1190_decode(decoder,bitbuffer,bb))>0' is always true rtl_433-23.11/src/devices/acurite.c:1457:72: style: Condition '(ret=acurite_899_decode(decoder,bitbuffer,bb))>0' is always true [knownConditionTrueFalse] rtl_433-23.11/src/devices/acurite.c:1457:46: note: Calling function 'acurite_899_decode' returns 1 rtl_433-23.11/src/devices/acurite.c:1457:72: note: Condition '(ret=acurite_899_decode(decoder,bitbuffer,bb))>0' is always true rtl_433-23.11/src/devices/ecowitt.c:41:14: style: Variable 'row' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/acurite.c:143:73: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/acurite.c:222:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/acurite.c:410:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/acurite.c:497:83: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/acurite.c:548:83: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/acurite.c:632:83: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/acurite.c:802:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/acurite.c:1075:84: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/acurite.c:1710:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/efergy_e2_classic.c:76:19: style: Variable 'zero_count' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/elro_db286a.c:35:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/efergy_optical.c:105:12: style: Variable 'energy' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/elv.c:14:33: style: Parameter 'bb' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/elv.c:31:60: style: Parameter 'bitbuffer' can be declared as pointer to const. However it seems that 'em1000_callback' is a callback function, if 'bitbuffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/elv.c:115:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/elv.c:31:60: note: Parameter 'bitbuffer' can be declared as pointer to const rtl_433-23.11/src/devices/elv.c:171:60: style: Parameter 'bitbuffer' can be declared as pointer to const. However it seems that 'ws2000_callback' is a callback function, if 'bitbuffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/elv.c:288:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/elv.c:171:60: note: Parameter 'bitbuffer' can be declared as pointer to const rtl_433-23.11/src/devices/elv.c:179:13: style: Variable 'length' can be declared as const array [constVariable] rtl_433-23.11/src/devices/elv.c:68:51: style: Variable 'bit' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/eurochron.c:41:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fineoffset.c:20:46: style: Parameter 'arg' can be declared as pointer to const. However it seems that 'fineoffset_WH2_create' is a callback function, if 'arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/fineoffset.c:1018:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/fineoffset.c:20:46: note: Parameter 'arg' can be declared as pointer to const rtl_433-23.11/src/devices/fineoffset.c:72:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fineoffset.c:289:9: style: Variable 'uvi_upper' can be declared as const array [constVariable] rtl_433-23.11/src/devices/fineoffset.c:685:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fineoffset.c:756:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fineoffset.c:837:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fineoffset.c:906:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fordremote.c:29:14: style: Variable 'bytes' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/fs20.c:71:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/ge_coloreffects.c:34:14: style: Variable 'bits' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/ge_coloreffects.c:82:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/generic_motion.c:36:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/generic_temperature_sensor.c:28:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/generic_remote.c:40:22: style: Condition 'b[2]==0' is always false [knownConditionTrueFalse] rtl_433-23.11/src/devices/generic_remote.c:32:12: note: Assignment 'b[2]=~b[2]', assigned value is greater than 0 rtl_433-23.11/src/devices/generic_remote.c:40:22: note: Condition 'b[2]==0' is always false rtl_433-23.11/src/devices/geo_minim.c:231:18: style: Same expression on both sides of '-'. [duplicateExpression] rtl_433-23.11/src/devices/gt_wt_02.c:50:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/hondaremote.c:36:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/hideki.c:71:18: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/infactory.c:50:41: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/ikea_sparsnas.c:125:40: style: Condition 'dec_sensor_id==key_sensor_id' is always false [knownConditionTrueFalse] rtl_433-23.11/src/devices/ikea_sparsnas.c:118:35: note: Assuming that condition 'dec_sensor_id>999999' is not redundant rtl_433-23.11/src/devices/ikea_sparsnas.c:123:85: note: Assignment 'key_sensor_id=((unsigned int)k0<<24|k4<<16|k2<<8|k1)+0x5D38E8CB', assigned value is greater than 1564010698 rtl_433-23.11/src/devices/ikea_sparsnas.c:125:40: note: Condition 'dec_sensor_id==key_sensor_id' is always false rtl_433-23.11/src/devices/ikea_sparsnas.c:90:62: style: Parameter 'buffer' can be declared as const array [constParameter] rtl_433-23.11/src/devices/honeywell_cm921.c:310:80: style: Clarify calculation precedence for '+' and '?'. [clarifyCalculation] rtl_433-23.11/src/devices/honeywell_cm921.c:172:29: style: Variable 'year' can be declared as const array [constVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:359:13: style: Variable 'header' can be declared as const array [constVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:162:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:184:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:191:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:195:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:204:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:214:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:221:30: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:222:30: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:223:31: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:230:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:245:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/honeywell_cm921.c:251:18: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/intertechno.c:24:15: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/intertechno.c:25:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/jasco.c:47:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/insteon.c:80:37: style: Parameter 'dat' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/insteon.c:102:33: style: Parameter 'dat' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/lacrosse.c:58:18: style: Variable 'pRow' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/lacrossews.c:40:58: style: Parameter 'pRow' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/markisol.c:53:22: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/maverick_et73x.c:67:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/mebus.c:17:60: style: Parameter 'bitbuffer' can be declared as pointer to const. However it seems that 'mebus433_decode' is a callback function, if 'bitbuffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/mebus.c:89:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/mebus.c:17:60: note: Parameter 'bitbuffer' can be declared as pointer to const rtl_433-23.11/src/devices/megacode.c:53:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/missil_ml0757.c:60:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/neptune_r900.c:99:19: style: Condition 'start_pos==bitbuffer->bits_per_row[0]' is always false [knownConditionTrueFalse] rtl_433-23.11/src/devices/neptune_r900.c:95:43: note: Assuming that condition 'start_pos+preamble_length+168>bitbuffer->bits_per_row[0]' is not redundant rtl_433-23.11/src/devices/neptune_r900.c:99:19: note: Condition 'start_pos==bitbuffer->bits_per_row[0]' is always false rtl_433-23.11/src/devices/neptune_r900.c:68:54: style: Parameter 'base6_dec' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/nexa.c:49:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/nice_flor_s.c:38:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/norgo.c:102:39: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/oil_standard.c:51:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/oregon_scientific_sl109h.c:26:14: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/philips_aj3650.c:56:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/prologue.c:36:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/proove.c:74:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/rftech.c:48:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/rojaflex.c:222:22: style: Variable 'sum' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/flex.c:23:46: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/flex.c:41:46: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/flex.c:104:55: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/flex.c:494:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/rubicson.c:41:33: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/m_bus.c:662:21: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] rtl_433-23.11/src/devices/m_bus.c:449:24: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] rtl_433-23.11/src/devices/m_bus.c:169:17: style: struct member 'm_bus_block1_t::CRC' is never used. [unusedStructMember] rtl_433-23.11/src/devices/m_bus.c:529:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:532:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:537:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:541:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:547:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:554:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:555:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:556:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:557:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:563:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:564:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:565:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:566:34: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:571:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:574:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:577:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:580:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:584:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:587:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:590:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:593:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:596:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:599:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:602:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:609:30: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:613:30: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:619:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:632:22: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:641:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:656:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:662:26: style: Variable 'data' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:680:17: style: Variable 'dif' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:682:22: style: Variable 'dife_cnt' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:683:24: style: Variable 'dif_coding' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:684:20: style: Variable 'dif_sn' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:685:20: style: Variable 'dif_ff' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:686:20: style: Variable 'dif_su' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:687:17: style: Variable 'vif' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:689:22: style: Variable 'vife_cnt' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:690:21: style: Variable 'vif_uam' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/m_bus.c:691:24: style: Variable 'vif_linear' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/silvercrest.c:23:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/secplus_v2.c:345:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/simplisafe.c:31:42: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/secplus_v1.c:49:66: style: Parameter 'bits' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/tfa_twin_plus_30.3049.c:71:13: style: Variable 'rb' can be declared as const array [constVariable] rtl_433-23.11/src/devices/thermopro_tx2.c:43:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_abarth124.c:67:17: style: Variable 'checksum' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/devices/thermopro_tx2c.c:52:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_citroen.c:35:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_ford.c:59:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_jansite.c:35:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_nissan.c:38:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/tpms_tyreguard400.c:169:33: style:inconclusive: Boolean expression 'decoder->verbose>=3' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] rtl_433-23.11/src/devices/ttx201.c:105:40: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/waveman.c:31:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/wssensor.c:36:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/x10_rf.c:50:13: style: Variable 'arrbKnownConstBitMask' can be declared as const array [constVariable] rtl_433-23.11/src/devices/x10_rf.c:51:13: style: Variable 'arrbKnownConstBitValue' can be declared as const array [constVariable] rtl_433-23.11/src/devices/yale_hsa.c:76:22: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/yale_hsa.c:89:26: style: Variable 'b' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/devices/vaillant_vrt340f.c:105:127: style: Condition 'heating_mode' is always true [knownConditionTrueFalse] rtl_433-23.11/src/getopt/getopt.c:780:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:519:9: warning: Either the condition '!rpc' is redundant or there is possible null pointer dereference: rpc. [nullPointerRedundantCheck] rtl_433-23.11/src/http_server.c:518:9: note: Assuming that condition '!rpc' is not redundant rtl_433-23.11/src/http_server.c:519:9: note: Null pointer dereference rtl_433-23.11/src/http_server.c:208:43: style: Parameter 'ring' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/http_server.c:213:43: style: Parameter 'ring' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/http_server.c:262:23: style: Variable 'r_dev' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:341:48: style: Parameter 'tok' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/http_server.c:350:51: style: Parameter 'tok' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/http_server.c:362:52: style: Parameter 'tok' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/http_server.c:981:24: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:1084:28: style: Variable 'cctx' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:1165:28: style: Variable 'cctx' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:1202:13: style: Variable 'data_model' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/http_server.c:333:9: style: struct member 'rpc::ver' is never used. [unusedStructMember] mongoose/src/mg_net.c:874:59: debug: Function::addArguments found argument 'callback' with varid 0. [varid0] mongoose/src/mg_net.c:882:56: debug: Function::addArguments found argument 'user_data' with varid 0. [varid0] mongoose/src/mg_net.c:892:63: debug: Function::addArguments found argument 'callback' with varid 0. [varid0] mongoose/src/mg_net.c:996:56: debug: Function::addArguments found argument 'event_handler' with varid 0. [varid0] mongoose/src/mg_net.c:1004:60: debug: Function::addArguments found argument 'callback' with varid 0. [varid0] mongoose/src/mg_net.c:1195:64: debug: Function::addArguments found argument 'callback' with varid 0. [varid0] mongoose/src/mg_net.c:1211:60: debug: Function::addArguments found argument 'callback' with varid 0. [varid0] rtl_433-23.11/src/devices/oregon_scientific.c:883:19: style: The comparison 'valid == 0' is always true. [knownConditionTrueFalse] rtl_433-23.11/src/devices/oregon_scientific.c:861:21: note: 'valid' is assigned value '0' here. rtl_433-23.11/src/devices/oregon_scientific.c:883:19: note: The comparison 'valid == 0' is always true. rtl_433-23.11/src/devices/oregon_scientific.c:52:48: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/oregon_scientific.c:65:46: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/oregon_scientific.c:72:47: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/oregon_scientific.c:82:52: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/devices/oregon_scientific.c:89:46: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/output_file.c:319:47: style: Condition 'kv->columnterm_width-26' is always true [knownConditionTrueFalse] rtl_433-23.11/src/output_file.c:314:29: note: Assuming that condition 'kv->column>=kv->term_width-26' is not redundant rtl_433-23.11/src/output_file.c:319:47: note: Condition 'kv->columnterm_width-26' is always true rtl_433-23.11/src/output_file.c:539:51: warning: Either the condition 'field' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] rtl_433-23.11/src/output_file.c:540:13: note: Assuming that condition 'field' is not redundant rtl_433-23.11/src/output_file.c:539:51: note: Null pointer subtraction rtl_433-23.11/src/output_file.c:324:15: style: Variable 'key' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/output_log.c:90:13: style: Variable 'data_lvl' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/fileformat.c:46:40: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/fileformat.c:59:41: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/fileformat.c:78:43: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/output_udp.c:141:53: style: Parameter 'client' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/output_influx.c:156:51: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/output_influx.c:375:17: style: Variable 'str' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/pulse_data.c:83:11: style: Variable 'timescale' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/pulse_data.c:154:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/output_mqtt.c:354:17: style: Variable 'data_model' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/pulse_detect_fsk.c:160:17: style: Variable 'mid' is assigned a value that is never used. [unreadVariable] rtl_433-23.11/src/pulse_detect.c:178:47: style: Parameter 'att_hist' can be declared as const array [constParameter] rtl_433-23.11/src/r_api.c:301:50: style: Parameter 'r_dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/r_api.c:304:19: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/r_api.c:388:48: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/r_api.c:428:49: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/r_api.c:467:13: style: Variable 'r_devs' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/r_api.c:483:28: style: Parameter 'r_devs' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/r_api.c:544:28: style: Parameter 'r_devs' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/r_api.c:653:35: style: Parameter 'r_dev' can be declared as pointer to const. However it seems that 'log_device_handler' is a callback function, if 'r_dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/r_api.c:282:23: note: You might need to cast the function pointer here rtl_433-23.11/src/r_api.c:653:35: note: Parameter 'r_dev' can be declared as pointer to const rtl_433-23.11/src/r_api.c:975:13: style: Variable 'r_devs' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/r_api.c:1133:45: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/samp_grab.c:100:11: style: Variable 'format' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/sdr.c:1638:15: style: The comparison 'r < 0' is always false. [knownConditionTrueFalse] rtl_433-23.11/src/sdr.c:1630:13: note: 'r' is assigned value '0' here. rtl_433-23.11/src/sdr.c:1638:15: note: The comparison 'r < 0' is always false. rtl_433-23.11/src/sdr.c:1076:5: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] rtl_433-23.11/src/sdr.c:140:11: style: Variable 'param' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/sdr.c:347:38: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1128:41: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1136:36: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1144:38: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1371:32: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1593:29: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1610:31: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:1625:26: style: Parameter 'dev' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/sdr.c:129:14: style: struct member 'rtl_tcp_info::tuner_gain_count' is never used. [unusedStructMember] rtl_433-23.11/src/pulse_analyzer.c:196:36: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/util.c:28:14: style: Variable 'xp' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/util.c:54:40: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/util.c:72:38: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/util.c:99:39: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/src/rtl_433.c:122:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] rtl_433-23.11/src/rtl_433.c:1930:29: style: Condition 'n_read!=0' is always true [knownConditionTrueFalse] rtl_433-23.11/src/rtl_433.c:1926:28: note: Assuming that condition 'n_read==0' is not redundant rtl_433-23.11/src/rtl_433.c:1930:29: note: Condition 'n_read!=0' is always true rtl_433-23.11/src/rtl_433.c:1456:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1451:7: note: r is assigned rtl_433-23.11/src/rtl_433.c:1456:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:1459:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1456:7: note: r is assigned rtl_433-23.11/src/rtl_433.c:1459:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:1466:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1459:7: note: r is assigned rtl_433-23.11/src/rtl_433.c:1466:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:1466:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1462:11: note: r is assigned rtl_433-23.11/src/rtl_433.c:1466:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:1476:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1470:7: note: r is assigned rtl_433-23.11/src/rtl_433.c:1476:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:1478:7: style: Variable 'r' is reassigned a value before the old one has been used. [redundantAssignment] rtl_433-23.11/src/rtl_433.c:1476:7: note: r is assigned rtl_433-23.11/src/rtl_433.c:1478:7: note: r is overwritten rtl_433-23.11/src/rtl_433.c:624:18: style: Variable 'out_buf' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/rtl_433.c:1644:19: style: Variable 'r_dev' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/tests/baseband-test.c:85:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/src/term_ctl.c:371:9: style: Condition '!fp' is always false [knownConditionTrueFalse] rtl_433-23.11/src/term_ctl.c:378:21: style: Condition 'ctx' is always true [knownConditionTrueFalse] rtl_433-23.11/src/term_ctl.c:429:21: style: Condition 'ctx' is always true [knownConditionTrueFalse] rtl_433-23.11/src/term_ctl.c:480:21: style: Condition 'ctx' is always true [knownConditionTrueFalse] rtl_433-23.11/tests/pulse-eval.c:108:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/tests/pulse-eval.c:129:31: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/tests/pulse-eval.c:159:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/tests/pulse-eval.c:164:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] rtl_433-23.11/tests/pulse-eval.c:175:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] rtl_433-23.11/tests/style-check.c:27:11: style: Variable 'strict' can be declared as pointer to const [constVariablePointer] common/mg_str.c:91:29: error: Returning object that points to local variable 's' that will be invalid when returning. [returnDanglingLifetime] common/mg_str.c:91:29: note: Address of variable taken here. common/mg_str.c:88:43: note: Variable created here. common/mg_str.c:91:29: note: Returning object that points to local variable 's' that will be invalid when returning. mongoose/src/mg_net.c:104:10: style: The if condition is the same as the previous if condition [duplicateCondition] mongoose/src/mg_net.c:103:10: note: First condition mongoose/src/mg_net.c:104:10: note: Second condition common/cs_time.c:40:40: style: Condition 'gettimeofday(&tv,NULL)!=0' is always false [knownConditionTrueFalse] common/cs_time.c:40:19: note: Calling function 'gettimeofday' returns 0 common/cs_time.c:40:40: note: Condition 'gettimeofday(&tv,NULL)!=0' is always false common/platforms/simplelink/sl_socket.c:51:7: warning: %lu in format string (no. 1) requires 'unsigned long *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] common/platforms/simplelink/sl_socket.c:51:7: warning: %lu in format string (no. 2) requires 'unsigned long *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] common/platforms/simplelink/sl_socket.c:51:7: warning: %lu in format string (no. 3) requires 'unsigned long *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] common/platforms/simplelink/sl_socket.c:51:7: warning: %lu in format string (no. 4) requires 'unsigned long *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] mongoose/src/mg_net_if_socket.c:457:7: style: Redundant initialization for 'now'. The initialized value is overwritten before it is read. [redundantInitialization] mongoose/src/mg_net_if_socket.c:372:14: note: now is initialized mongoose/src/mg_net_if_socket.c:457:7: note: now is overwritten common/platforms/simplelink/sl_net_if.c:343:7: style: Redundant initialization for 'now'. The initialized value is overwritten before it is read. [redundantInitialization] common/platforms/simplelink/sl_net_if.c:278:14: note: now is initialized common/platforms/simplelink/sl_net_if.c:343:7: note: now is overwritten mongoose/src/mg_util.c:114:26: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] mongoose/src/mg_net.c:64:55: style:inconclusive: Function 'mg_remove_conn' argument 1 names different: declaration 'c' definition 'conn'. [funcArgNamesDifferent] mongoose/src/mg_internal.h:54:55: note: Function 'mg_remove_conn' argument 1 names different: declaration 'c' definition 'conn'. mongoose/src/mg_net.c:64:55: note: Function 'mg_remove_conn' argument 1 names different: declaration 'c' definition 'conn'. mongoose/src/mg_net.c:580:38: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] common/platforms/simplelink/sl_net_if.c:392:39: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] common/cs_base64.c:200:9: style: Variable 'orig_dst' can be declared as pointer to const [constVariablePointer] mongoose/src/mg_net.c:548:74: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] mongoose/src/mg_net_if.c:25:49: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] mongoose/src/mg_net_if.c:46:25: style: Variable 'nc' can be declared as pointer to const [constVariablePointer] mongoose/src/mg_net_if_null.c:108:48: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_null_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongoose/src/mg_net_if_null.c:141:56: note: You might need to cast the function pointer here mongoose/src/mg_net_if_null.c:108:48: note: Parameter 'iface' can be declared as pointer to const mongoose/src/mg_net_if_null.c:109:18: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] mongoose/src/mg_net_if_socket.c:116:56: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'mg_socket_if_udp_send' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongoose/src/mg_net_if_socket.c:619:56: note: You might need to cast the function pointer here mongoose/src/mg_net_if_socket.c:116:56: note: Parameter 'nc' can be declared as pointer to const mongoose/src/mg_net_if_socket.c:135:56: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'mg_socket_if_udp_recv' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongoose/src/mg_net_if_socket.c:619:56: note: You might need to cast the function pointer here mongoose/src/mg_net_if_socket.c:135:56: note: Parameter 'nc' can be declared as pointer to const mongoose/src/mg_net_if_socket.c:370:43: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_socket_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongoose/src/mg_net_if_socket.c:619:56: note: You might need to cast the function pointer here mongoose/src/mg_net_if_socket.c:370:43: note: Parameter 'iface' can be declared as pointer to const mongoose/src/mg_net_if_socket.c:371:18: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] mongoose/src/mg_util.c:141:11: style: Variable 'addr_str' can be declared as pointer to const [constVariablePointer] common/platforms/simplelink/sl_net_if.c:276:39: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_sl_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/simplelink/sl_net_if.c:430:56: note: You might need to cast the function pointer here common/platforms/simplelink/sl_net_if.c:276:39: note: Parameter 'iface' can be declared as pointer to const common/platforms/simplelink/sl_net_if.c:277:18: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] common/platforms/simplelink/sl_net_if.c:372:51: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'mg_sl_if_get_conn_addr' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/simplelink/sl_net_if.c:430:56: note: You might need to cast the function pointer here common/platforms/simplelink/sl_net_if.c:372:51: note: Parameter 'nc' can be declared as pointer to const common/platforms/lwip/mg_lwip_net_if.c:223:61: style: Parameter 'tpcb' can be declared as pointer to const. However it seems that 'mg_lwip_tcp_sent_cb' is a callback function, if 'tpcb' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/lwip/mg_lwip_net_if.c:414:21: note: You might need to cast the function pointer here common/platforms/lwip/mg_lwip_net_if.c:223:61: note: Parameter 'tpcb' can be declared as pointer to const common/platforms/lwip/mg_lwip_net_if.c:288:44: style: Parameter 'addr' can be declared as pointer to const. However it seems that 'mg_lwip_udp_recv_cb' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/lwip/mg_lwip_net_if.c:473:20: note: You might need to cast the function pointer here common/platforms/lwip/mg_lwip_net_if.c:288:44: note: Parameter 'addr' can be declared as pointer to const common/platforms/lwip/mg_lwip_net_if.c:546:19: style: Variable 'tpcb' can be declared as pointer to const [constVariablePointer] common/platforms/lwip/mg_lwip_net_if.c:587:54: style: Parameter 'nc' can be declared as pointer to const [constParameterPointer] common/platforms/lwip/mg_lwip_ev_mgr.c:121:41: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_lwip_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/lwip/mg_lwip_net_if.c:744:56: note: You might need to cast the function pointer here common/platforms/lwip/mg_lwip_ev_mgr.c:121:41: note: Parameter 'iface' can be declared as pointer to const common/platforms/pic32/pic32_net_if.c:213:42: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_pic32_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/pic32/pic32_net_if.c:302:56: note: You might need to cast the function pointer here common/platforms/pic32/pic32_net_if.c:213:42: note: Parameter 'iface' can be declared as pointer to const common/platforms/pic32/pic32_net_if.c:214:18: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] common/platforms/pic32/pic32_net_if.c:259:54: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'mg_pic32_if_get_conn_addr' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/pic32/pic32_net_if.c:302:56: note: You might need to cast the function pointer here common/platforms/pic32/pic32_net_if.c:259:54: note: Parameter 'nc' can be declared as pointer to const common/platforms/pic32/pic32_net_if.c:260:54: style: Parameter 'sa' can be declared as pointer to const. However it seems that 'mg_pic32_if_get_conn_addr' is a callback function, if 'sa' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/pic32/pic32_net_if.c:302:56: note: You might need to cast the function pointer here common/platforms/pic32/pic32_net_if.c:260:54: note: Parameter 'sa' can be declared as pointer to const diff: head common/mg_str.c:91:29: error: Returning object that points to local variable 's' that will be invalid when returning. [returnDanglingLifetime] common/mg_str.c:91:29: note: Address of variable taken here. common/mg_str.c:88:43: note: Variable created here. common/mg_str.c:91:29: note: Returning object that points to local variable 's' that will be invalid when returning. 2.13.0 common/mg_str.c:91:29: error: Returning object that will be invalid when returning. [returnDanglingLifetime] common/mg_str.c:91:29: note: Address of variable taken here. common/mg_str.c:91:29: note: Returning object that will be invalid when returning. head common/platforms/lwip/mg_lwip_ev_mgr.c:121:41: style: Parameter 'iface' can be declared as pointer to const. However it seems that 'mg_lwip_if_poll' is a callback function, if 'iface' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/lwip/mg_lwip_net_if.c:744:56: note: You might need to cast the function pointer here common/platforms/lwip/mg_lwip_ev_mgr.c:121:41: note: Parameter 'iface' can be declared as pointer to const head common/platforms/pic32/pic32_net_if.c:259:54: style: Parameter 'nc' can be declared as pointer to const. However it seems that 'mg_pic32_if_get_conn_addr' is a callback function, if 'nc' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/pic32/pic32_net_if.c:302:56: note: You might need to cast the function pointer here common/platforms/pic32/pic32_net_if.c:259:54: note: Parameter 'nc' can be declared as pointer to const head common/platforms/pic32/pic32_net_if.c:260:54: style: Parameter 'sa' can be declared as pointer to const. However it seems that 'mg_pic32_if_get_conn_addr' is a callback function, if 'sa' is declared with const you might also need to cast function pointer(s). [constParameterCallback] common/platforms/pic32/pic32_net_if.c:302:56: note: You might need to cast the function pointer here common/platforms/pic32/pic32_net_if.c:260:54: note: Parameter 'sa' can be declared as pointer to const head rtl_433-23.11/src/devices/current_cost.c:24:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/devices/elv.c:171:60: style: Parameter 'bitbuffer' can be declared as pointer to const. However it seems that 'ws2000_callback' is a callback function, if 'bitbuffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/devices/elv.c:288:25: note: You might need to cast the function pointer here rtl_433-23.11/src/devices/elv.c:171:60: note: Parameter 'bitbuffer' can be declared as pointer to const head rtl_433-23.11/src/devices/flex.c:494:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/devices/secplus_v2.c:345:14: style: Variable 'bb' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/devices/tpms_citroen.c:35:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/devices/tpms_ford.c:59:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/devices/tpms_jansite.c:35:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] head rtl_433-23.11/src/r_api.c:653:35: style: Parameter 'r_dev' can be declared as pointer to const. However it seems that 'log_device_handler' is a callback function, if 'r_dev' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rtl_433-23.11/src/r_api.c:282:23: note: You might need to cast the function pointer here rtl_433-23.11/src/r_api.c:653:35: note: Parameter 'r_dev' can be declared as pointer to const DONE