Skip to content

Commit

Permalink
ST: Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 25, 2021
1 parent d94921b commit 7906cb5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions trunk/3rdparty/st-srs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,15 @@ void _st_del_sleep_q(_st_thread_t *thread)
void _st_vp_check_clock(void)
{
_st_thread_t *thread;
st_utime_t elapsed, now;

st_utime_t now;
#if defined(DEBUG) && defined(DEBUG_STATS)
st_utime_t elapsed;
#endif

now = st_utime();
#if defined(DEBUG) && defined(DEBUG_STATS)
elapsed = now < _ST_LAST_CLOCK? 0 : now - _ST_LAST_CLOCK; // Might step back.
#endif
_ST_LAST_CLOCK = now;

#if defined(DEBUG) && defined(DEBUG_STATS)
Expand Down

0 comments on commit 7906cb5

Please sign in to comment.