netease-docs/Design/cppCheck/netease_voice-cppcheck-buil.../audiobypass.a1

56 lines
3.5 KiB
XML

<?xml version="1.0"?>
<analyzerinfo checksum="136706000">
<error id="variableScope" severity="style" msg="The scope of the variable &apos;bufsize&apos; can be reduced." verbose="The scope of the variable &apos;bufsize&apos; 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 &apos;i&apos; can be reduced:\012void f(int x)\012{\012 int i = 0;\012 if (x) {\012 // it&apos;s safe to move &apos;int i = 0;&apos; here\012 for (int n = 0; n &lt; 10; ++n) {\012 // it is possible but not safe to move &apos;int i = 0;&apos; here\012 do_something(&amp;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:\SmartAudio\package\netease\netease_voice\src\audiobypass.c" file="G:\SmartAudio\package\netease\netease_voice\src\audiobypass.c" line="97"/>
</error>
<FileInfo check="CheckUnusedFunctions">
<functiondecl functionName="Netease_audiobypass_init" lineNumber="55"/>
<functiondecl functionName="Netease_audiobypass_start" lineNumber="80"/>
<functiondecl functionName="Netease_audiobypass_write" lineNumber="86"/>
<functiondecl functionName="audiobypass_read_thread" lineNumber="94"/>
<functiondecl functionName="Netease_audiobypass_destroy" lineNumber="118"/>
<functiondecl functionName="Netease_audiobypass_channel_set" lineNumber="138"/>
<functiondecl functionName="Netease_audiobypass_channel_unset" lineNumber="149"/>
<functioncall functionName="NETEASE_ERROR_FAIL"/>
<functioncall functionName="NETEASE_SUCCESS"/>
<functioncall functionName="NULL"/>
<functioncall functionName="Netease_IAT_write"/>
<functioncall functionName="Netease_yunxin_writeaudio"/>
<functioncall functionName="audio"/>
<functioncall functionName="audio_len"/>
<functioncall functionName="audiobypass_read_thread"/>
<functioncall functionName="buf"/>
<functioncall functionName="bufsize"/>
<functioncall functionName="bypass"/>
<functioncall functionName="cap"/>
<functioncall functionName="chan"/>
<functioncall functionName="continue"/>
<functioncall functionName="exit"/>
<functioncall functionName="free"/>
<functioncall functionName="if"/>
<functioncall functionName="malloc"/>
<functioncall functionName="mutex"/>
<functioncall functionName="n_debug"/>
<functioncall functionName="native_event_set"/>
<functioncall functionName="param"/>
<functioncall functionName="pthread_create"/>
<functioncall functionName="pthread_join"/>
<functioncall functionName="pthread_mutex_init"/>
<functioncall functionName="pthread_mutex_lock"/>
<functioncall functionName="pthread_mutex_unlock"/>
<functioncall functionName="queue"/>
<functioncall functionName="queue_buf"/>
<functioncall functionName="queue_destroy"/>
<functioncall functionName="queue_init"/>
<functioncall functionName="queue_read"/>
<functioncall functionName="queue_write"/>
<functioncall functionName="return"/>
<functioncall functionName="running"/>
<functioncall functionName="sizeof"/>
<functioncall functionName="sync_event"/>
<functioncall functionName="tid_queue_bypass"/>
<functioncall functionName="tmp"/>
<functioncall functionName="while"/>
</FileInfo>
</analyzerinfo>