From 2ed05c2f8f2fa1830ae74a052d477193242a3a26 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 4 May 2014 21:18:05 +0000 Subject: [PATCH] [PSEH3] And while we're at it, disable -Wshadow where it's required svn path=/trunk/; revision=63167 --- reactos/include/reactos/libs/pseh/pseh3.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/include/reactos/libs/pseh/pseh3.h b/reactos/include/reactos/libs/pseh/pseh3.h index be65eb75f9b..6aa15dd9c15 100644 --- a/reactos/include/reactos/libs/pseh/pseh3.h +++ b/reactos/include/reactos/libs/pseh/pseh3.h @@ -283,10 +283,13 @@ _SEH3$_AutoCleanup( #define _SEH3$_DEFINE_FILTER_FUNC(_Name, expression) \ _SEH3$_NESTED_FUNC_OPEN(_Name) \ /* Declare the intrinsics for exception filters */ \ +_Pragma("GCC diagnostic push") \ +_Pragma("GCC diagnostic ignored \"-Wshadow\"") \ inline __attribute__((always_inline, gnu_inline)) \ unsigned long _exception_code() { return _SEH3$_TrylevelFrame.ExceptionPointers->ExceptionRecord->ExceptionCode; } \ inline __attribute__((always_inline, gnu_inline)) \ void * _exception_info() { return _SEH3$_TrylevelFrame.ExceptionPointers; } \ +_Pragma("GCC diagnostic pop") \ \ /* Now handle the actual filter expression */ \ return (expression); \