File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ class SecureQSPIFBlockDevice: public QSPIFBlockDevice {
253
253
254
254
#if 1
255
255
// 256byte secure OTP area (on AT25SF128A)
256
- // TODO: could be imcomplete , to be tested
256
+ // TODO: could be incomplete , to be tested
257
257
class SecureQSPIFBlockDevice : public QSPIFBlockDevice {
258
258
public:
259
259
virtual int readSecure (void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
@@ -263,9 +263,15 @@ class SecureQSPIFBlockDevice: public QSPIFBlockDevice {
263
263
}
264
264
virtual int programSecure (void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
265
265
// like normal program with 42h
266
+
267
+ // avoid warning: no return statement in function returning non-void [-Wreturn-type]
268
+ return 0 ;
266
269
}
267
270
virtual int eraseSecure (void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
268
271
// like normal program with 44h
272
+
273
+ // avoid: warning: no return statement in function returning non-void [-Wreturn-type]
274
+ return 0 ;
269
275
}
270
276
};
271
277
#endif
You can’t perform that action at this time.
0 commit comments