netease-docs/Design/cppCheck/netease_voice-cppcheck-buil.../alsa-pcm.a1

63 lines
3.8 KiB
Plaintext
Raw Normal View History

2019-03-01 09:59:44 +00:00
<?xml version="1.0"?>
<analyzerinfo checksum="3477306765">
<error id="variableScope" severity="style" msg="The scope of the variable &apos;err&apos; can be reduced." verbose="The scope of the variable &apos;err&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\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>