git.droids-corp.org
/
protos
/
imu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make it compile
[protos/imu.git]
/
fat.c
diff --git
a/fat.c
b/fat.c
index
367d489
..
df579ce
100644
(file)
--- a/
fat.c
+++ b/
fat.c
@@
-814,6
+814,9
@@
uint8_t fat_clear_cluster(const struct fat_fs_struct* fs, cluster_t cluster_num)
*/
uintptr_t fat_clear_cluster_callback(uint8_t* buffer, offset_t offset, void* p)
{
*/
uintptr_t fat_clear_cluster_callback(uint8_t* buffer, offset_t offset, void* p)
{
+ (void)buffer;
+ (void)offset;
+ (void)p;
return 16;
}
#endif
return 16;
}
#endif
@@
-2518,6
+2521,8
@@
uint8_t fat_get_fs_free_16_callback(uint8_t* buffer, offset_t offset, void* p)
struct fat_usage_count_callback_arg* count_arg = (struct fat_usage_count_callback_arg*) p;
uintptr_t buffer_size = count_arg->buffer_size;
struct fat_usage_count_callback_arg* count_arg = (struct fat_usage_count_callback_arg*) p;
uintptr_t buffer_size = count_arg->buffer_size;
+ (void)offset;
+
for(uintptr_t i = 0; i < buffer_size; i += 2, buffer += 2)
{
uint16_t cluster = read16(buffer);
for(uintptr_t i = 0; i < buffer_size; i += 2, buffer += 2)
{
uint16_t cluster = read16(buffer);
@@
-2538,6
+2543,8
@@
uint8_t fat_get_fs_free_32_callback(uint8_t* buffer, offset_t offset, void* p)
struct fat_usage_count_callback_arg* count_arg = (struct fat_usage_count_callback_arg*) p;
uintptr_t buffer_size = count_arg->buffer_size;
struct fat_usage_count_callback_arg* count_arg = (struct fat_usage_count_callback_arg*) p;
uintptr_t buffer_size = count_arg->buffer_size;
+ (void)offset;
+
for(uintptr_t i = 0; i < buffer_size; i += 4, buffer += 4)
{
uint32_t cluster = read32(buffer);
for(uintptr_t i = 0; i < buffer_size; i += 4, buffer += 4)
{
uint32_t cluster = read32(buffer);