// Also hash the compiler name as some compilers use hard links and behave
// differently depending on the real name.
hash_delimiter(hash, "cc_name");
- char *p = basename(args->argv[0]);
- hash_string(hash, p);
- free(p);
+ char *base = basename(args->argv[0]);
+ hash_string(hash, base);
+ free(base);
// Possibly hash the current working directory.
if (generating_debuginfo && conf->hash_dir) {
}
if (dir) {
char *base_name = basename(output_obj);
- p = remove_extension(base_name);
+ char *p = remove_extension(base_name);
free(base_name);
char *gcda_path = format("%s/%s.gcda", dir, p);
cc_log("Hashing coverage path %s", gcda_path);
case 's': // --show-stats
initialize();
- stats_summary(conf);
+ stats_summary();
break;
case 'V': // --version
void stats_flush(void);
unsigned stats_get_pending(enum stats stat);
void stats_zero(void);
-void stats_summary(struct conf *conf);
+void stats_summary(void);
void stats_update_size(int64_t size, int files);
void stats_get_obsolete_limits(const char *dir, unsigned *maxfiles,
uint64_t *maxsize);
fatal("invalid boolean environment variable value \"%s\"", value);
}
- bool *value = (bool *)((char *)conf + item->offset);
- *value = !negate_boolean;
+ bool *boolvalue = (bool *)((char *)conf + item->offset);
+ *boolvalue = !negate_boolean;
goto out;
}
// Sum and display the total stats for all cache dirs.
void
-stats_summary(struct conf *conf)
+stats_summary(void)
{
struct counters *counters = counters_init(STATS_END);
time_t updated = 0;