mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-10-08 01:17:22 +00:00
Add missing volatile type qualifier in example code
... to fix "clobbered variable" compiler warning (`-Wclobbered`).
This commit is contained in:
@@ -84,7 +84,7 @@ transferred to the Catch block. A silly example:
|
|||||||
|
|
||||||
```
|
```
|
||||||
void SillyExampleWhichPrintsZeroThroughFive(void) {
|
void SillyExampleWhichPrintsZeroThroughFive(void) {
|
||||||
CEXCEPTION_T e;
|
volatile CEXCEPTION_T e;
|
||||||
int i;
|
int i;
|
||||||
while (i = 0; i < 6; i++) {
|
while (i = 0; i < 6; i++) {
|
||||||
Try {
|
Try {
|
||||||
|
|||||||
Reference in New Issue
Block a user