// Explicitly check the .gch/.pch/.pth file, Clang does not include any
// mention of it in the preprocessed output.
if (included_pch_file) {
- char *path = x_strdup(included_pch_file);
- path = make_relative_path(path);
- hash_string(hash, path);
- remember_include_file(path, hash, false);
+ char *pch_path = x_strdup(included_pch_file);
+ pch_path = make_relative_path(pch_path);
+ hash_string(hash, pch_path);
+ remember_include_file(pch_path, hash, false);
}
return true;
if (do_link) {
x_unlink(dest);
int ret = link(source, dest);
- if (ret == 0) {
- } else {
+ if (ret != 0) {
cc_log("Failed to link %s to %s: %s", source, dest, strerror(errno));
cc_log("Falling back to copying");
do_link = false;
}
static void
-create_initial_config_file(struct conf *conf, const char *path)
+create_initial_config_file(const char *path)
{
if (create_parent_dirs(path) != 0) {
return;
}
if (should_create_initial_config) {
- create_initial_config_file(conf, primary_config_path);
+ create_initial_config_file(primary_config_path);
}
exitfn_init();