diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2012-03-13 16:05:12 +0000 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2012-04-25 09:42:15 +0100 |
| commit | eeb2b65a7d5d79af3588ca5cf7e00c4ffd645ea7 (patch) | |
| tree | 3ba6079525a2419504275516c819cd03a82e0f87 /client | |
| parent | 456634a63ea6f409a5444e4aeeaaef1b7262034d (diff) | |
Mark some variables as volatile
When using setjmp/longjmp the state of local variables can be
undefined in certain scenarios:
[quote man(longjmp)]
The values of automatic variables are unspecified after a
call to longjmp() if they meet all the following criteria:
· they are local to the function that made the correspond‐
ing setjmp(3) call;
· their values are changed between the calls to setjmp(3)
and longjmp(); and
· they are not declared as volatile.
[/quote]
* server/red_worker.c: Mark some vars as volatile
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions
