Skip to content

Commit

Permalink
Fix two set but unused variables (#52)
Browse files Browse the repository at this point in the history
FIXES #51
  • Loading branch information
nwf-msr committed Jan 14, 2024
1 parent eeae989 commit 61c77f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libCacheSim/cache/eviction/Random.c
Expand Up @@ -48,7 +48,8 @@ cache_t *Random_init(const common_cache_params_t ccache_params,
common_cache_params_t ccache_params_copy = ccache_params;
ccache_params_copy.hashpower = MAX(12, ccache_params_copy.hashpower - 8);

cache_t *cache = cache_struct_init("Random", ccache_params, cache_specific_params);
cache_t *cache =
cache_struct_init("Random", ccache_params_copy, cache_specific_params);
cache->cache_init = Random_init;
cache->cache_free = Random_free;
cache->get = Random_get;
Expand Down
2 changes: 1 addition & 1 deletion libCacheSim/cache/eviction/RandomTwo.c
Expand Up @@ -50,7 +50,7 @@ cache_t *RandomTwo_init(const common_cache_params_t ccache_params,
ccache_params_copy.hashpower = MAX(12, ccache_params_copy.hashpower - 8);

cache_t *cache =
cache_struct_init("RandomTwo", ccache_params, cache_specific_params);
cache_struct_init("RandomTwo", ccache_params_copy, cache_specific_params);
cache->cache_init = RandomTwo_init;
cache->cache_free = RandomTwo_free;
cache->get = RandomTwo_get;
Expand Down

0 comments on commit 61c77f7

Please sign in to comment.