314 lines
18 KiB
XML
314 lines
18 KiB
XML
<?xml version="1.0"?>
|
|
<analyzerinfo checksum="325224330">
|
|
<error id="invalidPrintfArgType_sint" severity="warning" msg="%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'." verbose="%d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'." cwe="686">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1346"/>
|
|
</error>
|
|
<error id="redundantAssignment" severity="style" msg="Variable 'pJson' is reassigned a value before the old one has been used." verbose="Variable 'pJson' is reassigned a value before the old one has been used." cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="514"/>
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="507"/>
|
|
</error>
|
|
<error id="redundantAssignment" severity="style" msg="Variable 'pResPath' is reassigned a value before the old one has been used." verbose="Variable 'pResPath' is reassigned a value before the old one has been used." cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1003"/>
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1000"/>
|
|
</error>
|
|
<error id="variableScope" severity="style" msg="The scope of the variable 'i' can be reduced." verbose="The scope of the variable 'i' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it's safe to move 'int i = 0;' here\012 for (int n = 0; n < 10; ++n) {\012 // it is possible but not safe to move 'int i = 0;' here\012 do_something(&i);\012 }\012 }\012}\012When you see this message it is always safe to reduce the variable scope 1 level." cwe="398">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="381"/>
|
|
</error>
|
|
<error id="unreadVariable" severity="style" msg="Variable 'pInfo' is assigned a value that is never used." verbose="Variable 'pInfo' is assigned a value that is never used." cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="82"/>
|
|
</error>
|
|
<error id="unreadVariable" severity="style" msg="Variable 'outSize' is assigned a value that is never used." verbose="Variable 'outSize' is assigned a value that is never used." cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="440"/>
|
|
</error>
|
|
<error id="unreadVariable" severity="style" msg="Variable 'ret' is assigned a value that is never used." verbose="Variable 'ret' is assigned a value that is never used." cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="460"/>
|
|
</error>
|
|
<error id="unusedVariable" severity="style" msg="Unused variable: i" verbose="Unused variable: i" cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1354"/>
|
|
</error>
|
|
<error id="unusedVariable" severity="style" msg="Unused variable: j" verbose="Unused variable: j" cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1354"/>
|
|
</error>
|
|
<error id="unusedVariable" severity="style" msg="Unused variable: uvSndLess" verbose="Unused variable: uvSndLess" cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1356"/>
|
|
</error>
|
|
<error id="unusedVariable" severity="style" msg="Unused variable: uvSndMore" verbose="Unused variable: uvSndMore" cwe="563">
|
|
<location file0="G:\MyProjects\SmartAudio\Example\main.c" file="G:\MyProjects\SmartAudio\Example\main.c" line="1356"/>
|
|
</error>
|
|
<error id="purgedConfiguration" severity="information" msg="The configuration 'PLATFORM_R16' was not checked because its code equals another one." verbose="The configuration 'PLATFORM_R16' was not checked because its code equals another one.">
|
|
<location file="G:\MyProjects\SmartAudio\Example\main.c" line="0"/>
|
|
</error>
|
|
<FileInfo check="CheckUnusedFunctions">
|
|
<functiondecl functionName="OnCfgMsgCb" lineNumber="31"/>
|
|
<functiondecl functionName="__dBusDeameonCb" lineNumber="49"/>
|
|
<functiondecl functionName="KeyEventCb" lineNumber="74"/>
|
|
<functiondecl functionName="__uvThreadOTA" lineNumber="79"/>
|
|
<functiondecl functionName="DBusOnMessage" lineNumber="149"/>
|
|
<functiondecl functionName="uvSndLessCb" lineNumber="305"/>
|
|
<functiondecl functionName="test_evp_aes" lineNumber="329"/>
|
|
<functiondecl functionName="uvTimeoutCb" lineNumber="359"/>
|
|
<functiondecl functionName="EVPEncryptCb" lineNumber="375"/>
|
|
<functiondecl functionName="test_aes_async" lineNumber="435"/>
|
|
<functiondecl functionName="test_base64_async" lineNumber="458"/>
|
|
<functiondecl functionName="test_md5file_async" lineNumber="489"/>
|
|
<functiondecl functionName="test_s2j_task" lineNumber="502"/>
|
|
<functiondecl functionName="__uvThreadTestOTA" lineNumber="544"/>
|
|
<functiondecl functionName="__uvThreadTimer" lineNumber="712"/>
|
|
<functiondecl functionName="__uvThreadTestConfigure" lineNumber="730"/>
|
|
<functiondecl functionName="test_task_new" lineNumber="841"/>
|
|
<functiondecl functionName="__cacheCAEAudio" lineNumber="854"/>
|
|
<functiondecl functionName="test_move_data" lineNumber="865"/>
|
|
<functiondecl functionName="__onAlarmCb" lineNumber="870"/>
|
|
<functiondecl functionName="uvExitLoopCb" lineNumber="877"/>
|
|
<functiondecl functionName="__uvLoopExit" lineNumber="883"/>
|
|
<functiondecl functionName="__fs_event_handle_cb" lineNumber="916"/>
|
|
<functiondecl functionName="__onDlCb" lineNumber="927"/>
|
|
<functiondecl functionName="__onPrgCb" lineNumber="943"/>
|
|
<functiondecl functionName="__uvTestSkin" lineNumber="959"/>
|
|
<functiondecl functionName="__uvLogTestProc" lineNumber="1045"/>
|
|
<functiondecl functionName="__uvLogCtrlProc" lineNumber="1066"/>
|
|
<functiondecl functionName="__uvMsgSendTestProc" lineNumber="1337"/>
|
|
<functiondecl functionName="main" lineNumber="1352"/>
|
|
<functioncall functionName="ALIGN_AES_BLOCK"/>
|
|
<functioncall functionName="CMD_ALARM_SYNC_RSP"/>
|
|
<functioncall functionName="CMD_CALL_DIAL"/>
|
|
<functioncall functionName="CMD_LOG_CONFIG"/>
|
|
<functioncall functionName="CMD_LOG_FILE"/>
|
|
<functioncall functionName="CMD_LOG_LEVEL"/>
|
|
<functioncall functionName="CMD_LOG_MAIL"/>
|
|
<functioncall functionName="CMD_LOG_NETWORK"/>
|
|
<functioncall functionName="CMD_OTA_NOTIFY"/>
|
|
<functioncall functionName="CMD_SYSTEM_STANDBY"/>
|
|
<functioncall functionName="CRYPTO_AES_DECRYPT"/>
|
|
<functioncall functionName="CRYPTO_BASE64_DECODE"/>
|
|
<functioncall functionName="CRYPTO_BASE64_ENCODE"/>
|
|
<functioncall functionName="CRYPTO_MD5_FILE"/>
|
|
<functioncall functionName="CfgAddKeyValue"/>
|
|
<functioncall functionName="CfgGetKeyValue"/>
|
|
<functioncall functionName="CfgItemPrint"/>
|
|
<functioncall functionName="DBusBoardcastCommand"/>
|
|
<functioncall functionName="DBusJsonSendToCommand"/>
|
|
<functioncall functionName="DBusOnMessage"/>
|
|
<functioncall functionName="DBusSendToCommand"/>
|
|
<functioncall functionName="DBusWithLibuvInit"/>
|
|
<functioncall functionName="DEBUG_CODE_LINE"/>
|
|
<functioncall functionName="DUMP_PREFIX_ADDRESS"/>
|
|
<functioncall functionName="ERR_CFG_WAIT_RSP"/>
|
|
<functioncall functionName="EVPEncryptCb"/>
|
|
<functioncall functionName="EvpAESDecrypto"/>
|
|
<functioncall functionName="EvpAESEncrypto"/>
|
|
<functioncall functionName="EvpAddCryptoTask"/>
|
|
<functioncall functionName="EvpBase64DecodeNoAlign"/>
|
|
<functioncall functionName="EvpBase64EncodeNoAlign"/>
|
|
<functioncall functionName="EvpBase64EncodeNoAlignV2"/>
|
|
<functioncall functionName="EvpMD5HashBufV2"/>
|
|
<functioncall functionName="FALSE"/>
|
|
<functioncall functionName="GetCpuChipId"/>
|
|
<functioncall functionName="GetCpuSerial"/>
|
|
<functioncall functionName="GetDBusDefaultLoop"/>
|
|
<functioncall functionName="GetSkinsResource"/>
|
|
<functioncall functionName="IHW_EnableLogLevel"/>
|
|
<functioncall functionName="JSON_ENGINE_CFG_RSP"/>
|
|
<functioncall functionName="JSON_ENGINE_LOG_CFG_CMD"/>
|
|
<functioncall functionName="JSON_ENGINE_OTA_REQ"/>
|
|
<functioncall functionName="JSON_ENGINE_OTA_RSP"/>
|
|
<functioncall functionName="JSON_ENGINE_P2C"/>
|
|
<functioncall functionName="Json2Struct"/>
|
|
<functioncall functionName="LIBUV_CURRENT_TIME_US"/>
|
|
<functioncall functionName="LOG_All"/>
|
|
<functioncall functionName="LOG_BUF"/>
|
|
<functioncall functionName="LOG_CFG_PROTOCOL"/>
|
|
<functioncall functionName="LOG_Call"/>
|
|
<functioncall functionName="LOG_Close"/>
|
|
<functioncall functionName="LOG_Debug"/>
|
|
<functioncall functionName="LOG_Devp"/>
|
|
<functioncall functionName="LOG_EX"/>
|
|
<functioncall functionName="LOG_Error"/>
|
|
<functioncall functionName="LOG_Fatal"/>
|
|
<functioncall functionName="LOG_Info"/>
|
|
<functioncall functionName="LOG_Step"/>
|
|
<functioncall functionName="LOG_Test"/>
|
|
<functioncall functionName="LOG_Unknown"/>
|
|
<functioncall functionName="LOG_Warn"/>
|
|
<functioncall functionName="LogLeveToString"/>
|
|
<functioncall functionName="MAX_PATH"/>
|
|
<functioncall functionName="MODULE_ALARM"/>
|
|
<functioncall functionName="MODULE_OTA"/>
|
|
<functioncall functionName="MODULE_SKINS"/>
|
|
<functioncall functionName="MOD_INFO_TABLE"/>
|
|
<functioncall functionName="ModuleNameToString"/>
|
|
<functioncall functionName="NULL"/>
|
|
<functioncall functionName="OTA_CMD_DOWNLOAD"/>
|
|
<functioncall functionName="OTA_CMD_EXEC"/>
|
|
<functioncall functionName="OTA_CMD_USED_LOCAL_IMAGE"/>
|
|
<functioncall functionName="OTA_DATA_INFO"/>
|
|
<functioncall functionName="OTA_MODE_FORCE_NOW"/>
|
|
<functioncall functionName="OTA_MODE_NORMAL"/>
|
|
<functioncall functionName="PCFG_API_RSP"/>
|
|
<functioncall functionName="POTA_DATA_INFO"/>
|
|
<functioncall functionName="POTA_RSP_STATUS"/>
|
|
<functioncall functionName="PPLAYER_TO_CTRL"/>
|
|
<functioncall functionName="RunUVLoop"/>
|
|
<functioncall functionName="SAFE_STRING_VALUE"/>
|
|
<functioncall functionName="SkinInit"/>
|
|
<functioncall functionName="SkinUpgrade"/>
|
|
<functioncall functionName="Struct2Json"/>
|
|
<functioncall functionName="TRUE"/>
|
|
<functioncall functionName="UV_RUN_DEFAULT"/>
|
|
<functioncall functionName="__dBusDeameonCb"/>
|
|
<functioncall functionName="__uvLogCtrlProc"/>
|
|
<functioncall functionName="__uvLogTestProc"/>
|
|
<functioncall functionName="__uvMsgSendTestProc"/>
|
|
<functioncall functionName="__uvThreadOTA"/>
|
|
<functioncall functionName="break"/>
|
|
<functioncall functionName="buf"/>
|
|
<functioncall functionName="busCmd"/>
|
|
<functioncall functionName="cmd"/>
|
|
<functioncall functionName="continue"/>
|
|
<functioncall functionName="curPos"/>
|
|
<functioncall functionName="default"/>
|
|
<functioncall functionName="duration"/>
|
|
<functioncall functionName="enData"/>
|
|
<functioncall functionName="err"/>
|
|
<functioncall functionName="events"/>
|
|
<functioncall functionName="for"/>
|
|
<functioncall functionName="fprintf"/>
|
|
<functioncall functionName="free"/>
|
|
<functioncall functionName="g_AudioCache"/>
|
|
<functioncall functionName="g_Delay"/>
|
|
<functioncall functionName="g_Menu"/>
|
|
<functioncall functionName="g_ModInfo"/>
|
|
<functioncall functionName="g_SkinDefaultResTable"/>
|
|
<functioncall functionName="g_logLevelInfo"/>
|
|
<functioncall functionName="g_pModInfoTable"/>
|
|
<functioncall functionName="g_tmSync"/>
|
|
<functioncall functionName="g_tmTest"/>
|
|
<functioncall functionName="gettimeofday"/>
|
|
<functioncall functionName="i"/>
|
|
<functioncall functionName="iCmd"/>
|
|
<functioncall functionName="iError"/>
|
|
<functioncall functionName="iFinished"/>
|
|
<functioncall functionName="iMod"/>
|
|
<functioncall functionName="iSize"/>
|
|
<functioncall functionName="iValue"/>
|
|
<functioncall functionName="if"/>
|
|
<functioncall functionName="inet_addr"/>
|
|
<functioncall functionName="int"/>
|
|
<functioncall functionName="item"/>
|
|
<functioncall functionName="keyName"/>
|
|
<functioncall functionName="keyType"/>
|
|
<functioncall functionName="keyValue"/>
|
|
<functioncall functionName="logItem"/>
|
|
<functioncall functionName="logLevel"/>
|
|
<functioncall functionName="long"/>
|
|
<functioncall functionName="malloc"/>
|
|
<functioncall functionName="md5"/>
|
|
<functioncall functionName="memcpy"/>
|
|
<functioncall functionName="memmove"/>
|
|
<functioncall functionName="memset"/>
|
|
<functioncall functionName="modAliase"/>
|
|
<functioncall functionName="modIdx"/>
|
|
<functioncall functionName="modName"/>
|
|
<functioncall functionName="msgSize"/>
|
|
<functioncall functionName="musicUuid"/>
|
|
<functioncall functionName="otaInfo"/>
|
|
<functioncall functionName="otaStatusName"/>
|
|
<functioncall functionName="outSize"/>
|
|
<functioncall functionName="pAddCmd"/>
|
|
<functioncall functionName="pBase64"/>
|
|
<functioncall functionName="pBuf"/>
|
|
<functioncall functionName="pCallback"/>
|
|
<functioncall functionName="pCfg"/>
|
|
<functioncall functionName="pCmd"/>
|
|
<functioncall functionName="pConn"/>
|
|
<functioncall functionName="pData"/>
|
|
<functioncall functionName="pDecode"/>
|
|
<functioncall functionName="pDlPath"/>
|
|
<functioncall functionName="pEvent"/>
|
|
<functioncall functionName="pFile"/>
|
|
<functioncall functionName="pInput"/>
|
|
<functioncall functionName="pItem"/>
|
|
<functioncall functionName="pJson"/>
|
|
<functioncall functionName="pKey"/>
|
|
<functioncall functionName="pKeyName"/>
|
|
<functioncall functionName="pKeyType"/>
|
|
<functioncall functionName="pKeyValue"/>
|
|
<functioncall functionName="pLoop"/>
|
|
<functioncall functionName="pMD5"/>
|
|
<functioncall functionName="pMod"/>
|
|
<functioncall functionName="pMsg"/>
|
|
<functioncall functionName="pOInfo"/>
|
|
<functioncall functionName="pOTAStatus"/>
|
|
<functioncall functionName="pOperat"/>
|
|
<functioncall functionName="pOptMenu"/>
|
|
<functioncall functionName="pParams"/>
|
|
<functioncall functionName="pParams1"/>
|
|
<functioncall functionName="pParams2"/>
|
|
<functioncall functionName="pPlyCtl"/>
|
|
<functioncall functionName="pReqUrl"/>
|
|
<functioncall functionName="pResPath"/>
|
|
<functioncall functionName="pRsp"/>
|
|
<functioncall functionName="pSaveTo"/>
|
|
<functioncall functionName="pSrc"/>
|
|
<functioncall functionName="pSrcData"/>
|
|
<functioncall functionName="pString"/>
|
|
<functioncall functionName="pSub"/>
|
|
<functioncall functionName="pTaskUuid"/>
|
|
<functioncall functionName="pUpgCmd"/>
|
|
<functioncall functionName="path"/>
|
|
<functioncall functionName="pathSize"/>
|
|
<functioncall functionName="plyCtl"/>
|
|
<functioncall functionName="plySt"/>
|
|
<functioncall functionName="print_hex_dump_bytes"/>
|
|
<functioncall functionName="readline"/>
|
|
<functioncall functionName="ret"/>
|
|
<functioncall functionName="return"/>
|
|
<functioncall functionName="size"/>
|
|
<functioncall functionName="sizeof"/>
|
|
<functioncall functionName="sleep"/>
|
|
<functioncall functionName="sprintf"/>
|
|
<functioncall functionName="status"/>
|
|
<functioncall functionName="stderr"/>
|
|
<functioncall functionName="stdout"/>
|
|
<functioncall functionName="strMenu"/>
|
|
<functioncall functionName="strcmp"/>
|
|
<functioncall functionName="strcpy"/>
|
|
<functioncall functionName="strlen"/>
|
|
<functioncall functionName="strtod"/>
|
|
<functioncall functionName="strtok"/>
|
|
<functioncall functionName="strtol"/>
|
|
<functioncall functionName="strtoul"/>
|
|
<functioncall functionName="switch"/>
|
|
<functioncall functionName="test_task_new"/>
|
|
<functioncall functionName="tmEnd"/>
|
|
<functioncall functionName="tmExit"/>
|
|
<functioncall functionName="tmId"/>
|
|
<functioncall functionName="tmStart"/>
|
|
<functioncall functionName="tmUsed"/>
|
|
<functioncall functionName="tv_usec"/>
|
|
<functioncall functionName="uKey"/>
|
|
<functioncall functionName="uPercent"/>
|
|
<functioncall functionName="uType"/>
|
|
<functioncall functionName="url"/>
|
|
<functioncall functionName="usleep"/>
|
|
<functioncall functionName="utstring_free"/>
|
|
<functioncall functionName="utstring_new"/>
|
|
<functioncall functionName="utstring_printf"/>
|
|
<functioncall functionName="uvExitLoopCb"/>
|
|
<functioncall functionName="uvSndLessCb"/>
|
|
<functioncall functionName="uvSyncThread"/>
|
|
<functioncall functionName="uv_barrier_destroy"/>
|
|
<functioncall functionName="uv_barrier_init"/>
|
|
<functioncall functionName="uv_barrier_wait"/>
|
|
<functioncall functionName="uv_fs_event_getpath"/>
|
|
<functioncall functionName="uv_run"/>
|
|
<functioncall functionName="uv_stop"/>
|
|
<functioncall functionName="uv_thread_create"/>
|
|
<functioncall functionName="uv_timer_init"/>
|
|
<functioncall functionName="uv_timer_start"/>
|
|
<functioncall functionName="uv_timer_stop"/>
|
|
<functioncall functionName="val"/>
|
|
<functioncall functionName="while"/>
|
|
</FileInfo>
|
|
</analyzerinfo>
|