Skip to content

fix c33 build warnings #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/kvstore/implementation/portentac33.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ bool PortentaC33KVStore::begin() {
}

bool PortentaC33KVStore::begin(bool reformat, mbed::KVStore* store) {
(void) reformat;
// bd gets allocated if a kvstore is not provided as parameter here
// if either one of bd or kvstore is different from NULL it means that the kvstore
// had already been called begin on
Expand Down
2 changes: 1 addition & 1 deletion src/kvstore/implementation/portentac33.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class PortentaC33KVStore: public KVStoreInterface {
typename KVStoreInterface::res_t getBytes(const key_t& key, uint8_t b[], size_t s) const override;
size_t getBytesLength(const key_t& key) const override;
private:
MBRBlockDevice* bd;
mbed::KVStore* kvstore;
MBRBlockDevice* bd;
};
1 change: 1 addition & 0 deletions src/kvstore/kvstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ size_t KVStoreInterface::getString(const key_t& key, char* value, size_t maxLe

#ifdef ARDUINO
String KVStoreInterface::getString(const key_t& key, const String defaultValue) {
(void) defaultValue;
size_t len = getBytesLength(key);
char *str = new char[len+1];

Expand Down
Loading