mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
[PSEH3]
- Avoid trying to disable 'declaration after statement' warnings in C++ CORE-11794 svn path=/trunk/; revision=73211
This commit is contained in:
parent
790c388fd1
commit
67cbaa5a02
|
@ -16,6 +16,12 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#define PRAGMA_DIAGNOSTIC_IGNORED_DECLARATION_AFTER_STATEMENT
|
||||||
|
#else
|
||||||
|
#define PRAGMA_DIAGNOSTIC_IGNORED_DECLARATION_AFTER_STATEMENT _Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"")
|
||||||
|
#endif
|
||||||
|
|
||||||
/* CLANG must safe non-volatiles, because it uses a return-twice algorithm */
|
/* CLANG must safe non-volatiles, because it uses a return-twice algorithm */
|
||||||
#if defined(__clang__) && !defined(_SEH3$_FRAME_ALL_NONVOLATILES)
|
#if defined(__clang__) && !defined(_SEH3$_FRAME_ALL_NONVOLATILES)
|
||||||
#define _SEH3$_FRAME_ALL_NONVOLATILES 1
|
#define _SEH3$_FRAME_ALL_NONVOLATILES 1
|
||||||
|
@ -354,7 +360,7 @@ _Pragma("GCC diagnostic pop") \
|
||||||
(void)&&_SEH3$_l_FilterOrFinally; \
|
(void)&&_SEH3$_l_FilterOrFinally; \
|
||||||
\
|
\
|
||||||
_Pragma("GCC diagnostic push") \
|
_Pragma("GCC diagnostic push") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
|
PRAGMA_DIAGNOSTIC_IGNORED_DECLARATION_AFTER_STATEMENT \
|
||||||
\
|
\
|
||||||
/* Count the try level. Outside of any __try, _SEH3$_TryLevel is 0 */ \
|
/* Count the try level. Outside of any __try, _SEH3$_TryLevel is 0 */ \
|
||||||
enum { \
|
enum { \
|
||||||
|
@ -386,7 +392,7 @@ _Pragma("GCC diagnostic pop") \
|
||||||
_SEH3$_ASM_GOTO(_SEH3$_l_OnException); \
|
_SEH3$_ASM_GOTO(_SEH3$_l_OnException); \
|
||||||
\
|
\
|
||||||
_Pragma("GCC diagnostic push") \
|
_Pragma("GCC diagnostic push") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
|
PRAGMA_DIAGNOSTIC_IGNORED_DECLARATION_AFTER_STATEMENT \
|
||||||
\
|
\
|
||||||
/* Forward declaration of the filter function */ \
|
/* Forward declaration of the filter function */ \
|
||||||
_SEH3$_DECLARE_FILTER_FUNC(_SEH3$_FilterFunction); \
|
_SEH3$_DECLARE_FILTER_FUNC(_SEH3$_FilterFunction); \
|
||||||
|
@ -436,7 +442,7 @@ _Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
|
||||||
_SEH3$_ASM_GOTO(_SEH3$_l_OnException); \
|
_SEH3$_ASM_GOTO(_SEH3$_l_OnException); \
|
||||||
\
|
\
|
||||||
_Pragma("GCC diagnostic push") \
|
_Pragma("GCC diagnostic push") \
|
||||||
_Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
|
PRAGMA_DIAGNOSTIC_IGNORED_DECLARATION_AFTER_STATEMENT \
|
||||||
\
|
\
|
||||||
/* Forward declaration of the finally function */ \
|
/* Forward declaration of the finally function */ \
|
||||||
_SEH3$_DECLARE_FILTER_FUNC(_SEH3$_FinallyFunction); \
|
_SEH3$_DECLARE_FILTER_FUNC(_SEH3$_FinallyFunction); \
|
||||||
|
|
Loading…
Reference in a new issue