Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 6:df815bdada09, committed 2013-05-28
- Comitter:
- greletj
- Date:
- Tue May 28 17:50:55 2013 +0000
- Parent:
- 5:a0d839622531
- Commit message:
- add default in switch(mode) to suppress compiler warning: ; enumeration value 'SETF' not handled in switch
Changed in this revision
| bitmsk.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/bitmsk.cpp Tue May 28 17:23:46 2013 +0000
+++ b/bitmsk.cpp Tue May 28 17:50:55 2013 +0000
@@ -29,6 +29,8 @@
break;
case SETA : *bitmsk = new_msk;
break;
+ default:
+ break;
}
return( *bitmsk );
}
@@ -62,6 +64,8 @@
case SETA : raz(); // pas de break
case ADD : bits[ num ] |= msk;
break;
+ default:
+ break;
}
for( num = 0; num < BITMSK_SIZE; num++ )
if( bits[ num ] != BITMSK_RIEN ) return( true );