This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: w32api compiler warning fix.
On Fri, Nov 09, 2001 at 10:58:56AM +1100, Danny Smith wrote:
> It's a gcc vs msvc diff in warnings.
>
> Try this:
>
> #include <assert.h>
> struct a
> {
> int b[2];
> };
>
> int main (){
> struct a gcc_a = {{1,2}};
> struct a msvc_a = {3,4};
> assert( gcc_a.b[1]= 2);
> assert( msvc_a.b[1]= 4);
> return 0;
> }
>
> The warning about the msvc way appears harmless.
>
>
> After thinking about last patch it can be generalised to:
>
> #define INIT_SID_AUTHORITY(a) {0,0,0,0,0,a}
> #define SECURITY_NULL_SID_AUTHORITY {INIT_SID_AUTHORITY(0)}
> #define SECURITY_WORLD_SID_AUTHORITY {INIT_SID_AUTHORITY(1)}
> #define SECURITY_LOCAL_SID_AUTHORITY {INIT_SID_AUTHORITY(2)}
> #define SECURITY_CREATOR_SID_AUTHORITY {INIT_SID_AUTHORITY(3)}
> #define SECURITY_NON_UNIQUE_AUTHORITY {INIT_SID_AUTHORITY(4)}
> #define SECURITY_NT_AUTHORITY {INIT_SID_AUTHORITY(5)}
But that's still not the definition as it's given by MS.
Hmm,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.