mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 08:36:28 +03:00
Merge pull request #214 from daowens01/unused_variable_compiler_error
Wrap user_per_tick_inc_set_backup declaration in ifdef
This commit is contained in:
@@ -285,8 +285,6 @@ static double user_rate = 1.0;
|
||||
static bool user_rate_set = false;
|
||||
static struct timespec user_per_tick_inc = {0, -1};
|
||||
static bool user_per_tick_inc_set = false;
|
||||
static bool user_per_tick_inc_set_backup = false;
|
||||
|
||||
enum ft_mode_t {FT_FREEZE, FT_START_AT, FT_NOOP} ft_mode = FT_FREEZE;
|
||||
|
||||
/* Time to fake is not provided through FAKETIME env. var. */
|
||||
@@ -680,6 +678,7 @@ static bool load_time(struct timespec *tp)
|
||||
#include <sys/stat.h>
|
||||
|
||||
static int fake_stat_disabled = 0;
|
||||
static bool user_per_tick_inc_set_backup = false;
|
||||
|
||||
void lock_for_stat()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user