File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 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 {
253253
254254#if 1
255255// 256byte secure OTP area (on AT25SF128A)
256- // TODO: could be imcomplete , to be tested
256+ // TODO: could be incomplete , to be tested
257257class SecureQSPIFBlockDevice : public QSPIFBlockDevice {
258258 public:
259259 virtual int readSecure (void *buffer, mbed::bd_addr_t addr, mbed::bd_size_t size) {
@@ -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
You can’t perform that action at this time.
0 commit comments