Closed endian-albin closed 4 years ago
The warnings go away if we upgrade mcumgr
to cfe5eb98a9493017448846fd1a44a9340bd0a22f and then change two lines:
@@ -49,7 +49,7 @@ fs_mgmt_impl_read(const char *path, size_t offset, size_t len,
ssize_t bytes_read;
int rc;
- rc = fs_open(&file, path, FS_O_READ);
+ rc = fs_open(&file, path);
if (rc != 0) {
return MGMT_ERR_ENOENT;
}
@@ -123,7 +123,7 @@ fs_mgmt_impl_write(const char *path, size_t offset, const void *data,
}
}
- rc = fs_open(&file, path, FS_O_CREATE | FS_O_WRITE);
+ rc = fs_open(&file, path);
if (rc != 0) {
return MGMT_ERR_EUNKNOWN;
}
The default build command
west build -p -b pinetime hypnos
generates the warnings below. They don't show up when building with bootloader support disabled.