[CRT:STARTUP] Fix a Clang-Cl warning about GS_ExceptionPointers 372/head
authorSerge Gautherie <reactos-git_serge_171003@gautherie.fr>
Sat, 10 Feb 2018 05:39:28 +0000 (06:39 +0100)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 10 Feb 2018 17:13:12 +0000 (18:13 +0100)
"warning: unused variable 'GS_ExceptionPointers' [-Wunused-const-variable]"
Missed in CORE-8626 r64704.

CORE-14306

sdk/lib/crt/startup/gs_support.c

index efdfad4..1a6d70d 100644 (file)
@@ -37,12 +37,14 @@ typedef union
   FILETIME ft_struct;
 } FT;
 
+#ifndef _MSC_VER
 static EXCEPTION_RECORD GS_ExceptionRecord;
 static CONTEXT GS_ContextRecord;
 
 static const EXCEPTION_POINTERS GS_ExceptionPointers = {
   &GS_ExceptionRecord,&GS_ContextRecord
 };
+#endif
 
 DECLSPEC_SELECTANY UINT_PTR __security_cookie = DEFAULT_SECURITY_COOKIE;
 DECLSPEC_SELECTANY UINT_PTR __security_cookie_complement = ~(DEFAULT_SECURITY_COOKIE);