Skip to content

Commit ebc6e30

Browse files
committed
return value to avoid warning
1 parent fcc63d9 commit ebc6e30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

variants/OPTA/variant.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,15 @@ class SecureQSPIFBlockDevice: public QSPIFBlockDevice {
263263
}
264264
virtual int programSecure(void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
265265
// like normal program with 42h
266+
267+
// avoid warning: no return statement in function returning non-void [-Wreturn-type]
268+
return 0;
266269
}
267270
virtual int eraseSecure(void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
268271
// like normal program with 44h
272+
273+
// avoid: warning: no return statement in function returning non-void [-Wreturn-type]
274+
return 0;
269275
}
270276
};
271277
#endif

0 commit comments

Comments
 (0)