From 4d1fdcb6f84d37738f119273045278ca4fae4a91 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Fri, 9 Nov 2001 13:23:54 +0000 Subject: [PATCH] 2001-11-10 Robert Collins * include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings with _AUTHORITY #defines. --- winsup/w32api/ChangeLog | 5 +++++ winsup/w32api/include/winnt.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index b7a7239cc..9075a5909 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2001-11-10 Robert Collins + + * include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings + with _AUTHORITY #defines. + 2001-11-09 Robert Collins * include/winnt.h (GetCurrentFiber): Create a prototype before the implementation; diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h index 345f4462a..b7c72293c 100644 --- a/winsup/w32api/include/winnt.h +++ b/winsup/w32api/include/winnt.h @@ -267,6 +267,11 @@ typedef BYTE BOOLEAN,*PBOOLEAN; #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3FF) #define EXCEPTION_NONCONTINUABLE 1 #define EXCEPTION_MAXIMUM_PARAMETERS 15 +/* + * To prevent gcc compiler warnings, bracket these defines when initialising + * a SID_IDENTIFIER_AUTHORITY, eg. + * SID_IDENTIFIER_AUTHORITY aNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY}; + */ #define SECURITY_NULL_SID_AUTHORITY {0,0,0,0,0,0} #define SECURITY_WORLD_SID_AUTHORITY {0,0,0,0,0,1} #define SECURITY_LOCAL_SID_AUTHORITY {0,0,0,0,0,2}