diff options
author | JF Bastien <jfb@chromium.org> | 2016-01-13 18:55:57 -0800 |
---|---|---|
committer | JF Bastien <jfb@chromium.org> | 2016-01-13 19:43:29 -0800 |
commit | 01455820d430120c694dbc9978ed4dc8192185e0 (patch) | |
tree | 40c46c355edbda1c7b188685aa88cc6e6aa59a85 /update.py | |
parent | 1466e072717f6516eae1885296ace1d7acb38f2f (diff) | |
download | binaryen-01455820d430120c694dbc9978ed4dc8192185e0.tar.gz binaryen-01455820d430120c694dbc9978ed4dc8192185e0.tar.bz2 binaryen-01455820d430120c694dbc9978ed4dc8192185e0.zip |
Avoid potential setjmp clobber
-Wextra adds checks for potential clobbers which triggered in binaryen-shell.cpp:
might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
The fix moves the setjmp/longjmp using code into another function, and passes in potentially-clobbered values from the parent frame so they can't be clobbered. We could also mark them as volatile but that's a big hammer.
Diffstat (limited to 'update.py')
0 files changed, 0 insertions, 0 deletions