am 0520298e: am 0b17e1cf: am 72be6d5e: Merge "cpio: Turn on -Werror"
* commit '0520298e3a58c99bc87a4e8c5f64aa419354159b': cpio: Turn on -Werror
This commit is contained in:
commit
4b8fde7529
|
@ -8,6 +8,8 @@ LOCAL_SRC_FILES := \
|
|||
|
||||
LOCAL_MODULE := mkbootfs
|
||||
|
||||
LOCAL_CFLAGS := -Werror
|
||||
|
||||
include $(BUILD_HOST_EXECUTABLE)
|
||||
|
||||
$(call dist-for-goals,dist_files,$(LOCAL_BUILT_MODULE))
|
||||
|
|
|
@ -78,8 +78,9 @@ static void fix_stat(const char *path, struct stat *s)
|
|||
s->st_mode = empty_path_config->mode | (s->st_mode & ~07777);
|
||||
} else {
|
||||
// Use the compiled-in fs_config() function.
|
||||
|
||||
fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &s->st_mode, &capabilities);
|
||||
unsigned st_mode = s->st_mode;
|
||||
fs_config(path, S_ISDIR(s->st_mode), &s->st_uid, &s->st_gid, &st_mode, &capabilities);
|
||||
s->st_mode = (typeof(s->st_mode)) st_mode;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue