diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 5939cd680e3a0c1a201f0c4813b2d33239042dd2..15b42a2af90127c7ccde420462fcea9edd26cacc 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -532,7 +532,7 @@ void copy(const char* src, const char* dst) { struct dfs_fd src_fd; rt_uint8_t *block_ptr; - rt_uint32_t read_bytes, write_bytes; + rt_uint32_t read_bytes; block_ptr = rt_malloc(BUF_SZ); if (block_ptr == RT_NULL) diff --git a/components/finsh/shell.h b/components/finsh/shell.h index d810a71c0b0f99116afaec8219231c67d8935368..76b5249c681dde3bde5122779e92f8d4904b9b40 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -55,6 +55,6 @@ void finsh_set_echo(rt_uint32_t echo); rt_uint32_t finsh_get_echo(void); void finsh_set_device(const char* device_name); -const char* finsh_get_device(); +const char* finsh_get_device(void); #endif