What is a Conditionally Uninitialized Variable? The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
1 instance of this defect were found in the following locations:
For now we just use QueryPerformanceCounter(). It's good, most of the time.
*/
QueryPerformanceCounter( &time ); <------ HERE
return time.QuadPart * secondsPerTick_;
}
What is a Conditionally Uninitialized Variable? The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
1 instance of this defect were found in the following locations:
Instance 1 File :
3rdparty/portaudio/src/os/win/pa_win_util.c
Enclosing Function :PaUtil_GetTime
Function :QueryPerformanceCounter@4
https://github.com/sagarpant1/mame/blob/fe529afa8e0669d323dec9e3a575efc399009e5c/3rdparty/portaudio/src/os/win/pa_win_util.c#L145 Issue in: timeCode extract:
How can I fix it? Correct reference usage found in
3rdparty/asmjit/src/asmjit/core/osutils.cpp
at line57
. https://github.com/sagarpant1/mame/blob/fe529afa8e0669d323dec9e3a575efc399009e5c/3rdparty/asmjit/src/asmjit/core/osutils.cpp#L57 Code extract: