Skip to content

Commit 2f06b9b

Browse files
committed
fix c33 build warnings
1 parent a398fd4 commit 2f06b9b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/kvstore/implementation/portentac33.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ bool PortentaC33KVStore::begin() {
1818
}
1919

2020
bool PortentaC33KVStore::begin(bool reformat, mbed::KVStore* store) {
21+
(void) reformat;
2122
// bd gets allocated if a kvstore is not provided as parameter here
2223
// if either one of bd or kvstore is different from NULL it means that the kvstore
2324
// had already been called begin on

src/kvstore/implementation/portentac33.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ class PortentaC33KVStore: public KVStoreInterface {
3232
typename KVStoreInterface::res_t getBytes(const key_t& key, uint8_t b[], size_t s) const override;
3333
size_t getBytesLength(const key_t& key) const override;
3434
private:
35-
MBRBlockDevice* bd;
3635
mbed::KVStore* kvstore;
36+
MBRBlockDevice* bd;
3737
};

src/kvstore/kvstore.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ size_t KVStoreInterface::getString(const key_t& key, char* value, size_t maxLe
7777

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

0 commit comments

Comments
 (0)