We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d81dd commit 9661bf4Copy full SHA for 9661bf4
variants/OPTA/variant.cpp
@@ -263,9 +263,15 @@ class SecureQSPIFBlockDevice: public QSPIFBlockDevice {
263
}
264
virtual int programSecure(void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
265
// like normal program with 42h
266
+
267
+ // avoid warning: no return statement in function returning non-void [-Wreturn-type]
268
+ return 0;
269
270
virtual int eraseSecure(void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
271
// like normal program with 44h
272
273
+ // avoid: warning: no return statement in function returning non-void [-Wreturn-type]
274
275
276
};
277
#endif
0 commit comments