From e9ac5bacb86e39ecddd17cab093bdf2db6e648a2 Mon Sep 17 00:00:00 2001 From: "KJK::Hyperion" Date: Wed, 12 Nov 2008 21:15:45 +0000 Subject: [PATCH] modified include/reactos/libs/pseh/pseh2.h Kill the last few remaining "'x' may be used uninitialized in this function" warnings. I'd love to know the opinion of GCC developers on what does this hack do to their compiler and why svn path=/trunk/; revision=37319 --- reactos/include/reactos/libs/pseh/pseh2.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/include/reactos/libs/pseh/pseh2.h b/reactos/include/reactos/libs/pseh/pseh2.h index f980dbca5a0..a40b7f96084 100644 --- a/reactos/include/reactos/libs/pseh/pseh2.h +++ b/reactos/include/reactos/libs/pseh/pseh2.h @@ -234,8 +234,6 @@ _SEHTryLevel_t; __SEH_BEGIN_SCOPE \ { \ __SEH_SCOPE_LOCALS; \ - \ - void _SEHJumpToHandler() { goto _SEHBeginExcept; } \ \ __SEH_BEGIN_TRY \ { @@ -327,6 +325,7 @@ _SEHTryLevel_t; { \ { \ _SEHFrame_t * const _SEHFrameP = _SEHTopTryLevel ? &_SEHFrame : _SEHCurFrameP; \ + (void)_SEHFrameP; \ __SEH_BARRIER; #define _SEH2_END \ @@ -334,6 +333,12 @@ _SEHTryLevel_t; } \ } \ _SEHEndExcept: __SEH_SIDE_EFFECT; \ + \ + void _SEHJumpToHandler() \ + { \ + if(_SEHFrameP == (_SEHTopTryLevel ? &_SEHFrame : _SEHCurFrameP) && _SEHPrevTryLevelP == _SEHTryLevelP) \ + goto _SEHBeginExcept; \ + } \ } \ __SEH_END_SCOPE;