63 lines
3.8 KiB
Plaintext
63 lines
3.8 KiB
Plaintext
|
<?xml version="1.0"?>
|
||
|
<analyzerinfo checksum="3477306765">
|
||
|
<error id="variableScope" severity="style" msg="The scope of the variable 'err' can be reduced." verbose="The scope of the variable 'err' 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:\SmartAudio\package\netease\netease_voice\src\alsa-pcm.c" file="G:\SmartAudio\package\netease\netease_voice\src\alsa-pcm.c" line="196"/>
|
||
|
</error>
|
||
|
<FileInfo check="CheckUnusedFunctions">
|
||
|
<functiondecl functionName="Netease_player_open" lineNumber="65"/>
|
||
|
<functiondecl functionName="xrun_recovery" lineNumber="165"/>
|
||
|
<functiondecl functionName="Netease_player_play" lineNumber="193"/>
|
||
|
<functiondecl functionName="Netease_player_close" lineNumber="222"/>
|
||
|
<functioncall functionName="EAGAIN"/>
|
||
|
<functioncall functionName="EINTR"/>
|
||
|
<functioncall functionName="EPIPE"/>
|
||
|
<functioncall functionName="ESTRPIPE"/>
|
||
|
<functioncall functionName="NULL"/>
|
||
|
<functioncall functionName="SND_PCM_ACCESS_RW_INTERLEAVED"/>
|
||
|
<functioncall functionName="SND_PCM_FORMAT_S16"/>
|
||
|
<functioncall functionName="SND_PCM_STREAM_PLAYBACK"/>
|
||
|
<functioncall functionName="alsa_handle"/>
|
||
|
<functioncall functionName="alsa_out_dev"/>
|
||
|
<functioncall functionName="alsa_params"/>
|
||
|
<functioncall functionName="buf"/>
|
||
|
<functioncall functionName="buffer_time"/>
|
||
|
<functioncall functionName="channel"/>
|
||
|
<functioncall functionName="continue"/>
|
||
|
<functioncall functionName="dir"/>
|
||
|
<functioncall functionName="err"/>
|
||
|
<functioncall functionName="err_pcm_hw"/>
|
||
|
<functioncall functionName="err_pcm_hw_params"/>
|
||
|
<functioncall functionName="handle"/>
|
||
|
<functioncall functionName="if"/>
|
||
|
<functioncall functionName="len"/>
|
||
|
<functioncall functionName="n_error"/>
|
||
|
<functioncall functionName="period_time"/>
|
||
|
<functioncall functionName="printf"/>
|
||
|
<functioncall functionName="ptr"/>
|
||
|
<functioncall functionName="rate"/>
|
||
|
<functioncall functionName="ret"/>
|
||
|
<functioncall functionName="return"/>
|
||
|
<functioncall functionName="samples"/>
|
||
|
<functioncall functionName="sleep"/>
|
||
|
<functioncall functionName="snd_pcm_close"/>
|
||
|
<functioncall functionName="snd_pcm_drain"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_alloca"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_any"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_access"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_buffer_size_near"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_channels"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_format"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_period_size_near"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_rate_near"/>
|
||
|
<functioncall functionName="snd_pcm_hw_params_set_rate_resample"/>
|
||
|
<functioncall functionName="snd_pcm_open"/>
|
||
|
<functioncall functionName="snd_pcm_prepare"/>
|
||
|
<functioncall functionName="snd_pcm_resume"/>
|
||
|
<functioncall functionName="snd_pcm_writei"/>
|
||
|
<functioncall functionName="snd_strerror"/>
|
||
|
<functioncall functionName="while"/>
|
||
|
<functioncall functionName="xrun_recovery"/>
|
||
|
</FileInfo>
|
||
|
</analyzerinfo>
|