Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Henri Verbeet
On 26 July 2010 17:08, Michael Stefaniuc wrote: > Works for me with the gcc 4.4.4 on F13 but it breaks with the old 3.1.1 > gcc used by the old Smatch. > Well, it works with 4.4.3 on Gentoo for me as well... :-) just saying that you don't necessarily have to try very hard to break it.

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Michael Stefaniuc
Henri Verbeet wrote: > On 26 July 2010 10:00, Alexandre Julliard wrote: >> Octavian Voicu writes: >> >>> On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: -static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags that can be set by user */ +static const D

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Henri Verbeet
On 26 July 2010 10:00, Alexandre Julliard wrote: > Octavian Voicu writes: > >> On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: >>> -    static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* >>> flags that can be set by user */ >>> +    static const DWORD user_flags = DCX_PARENTC

Re: [PATCH] const variables are not compile-time constants

2010-07-26 Thread Alexandre Julliard
Octavian Voicu writes: > On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: >> -    static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags >> that can be set by user */ >> +    static const DWORD user_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | >> DCX_CLIPCHILDREN | DCX_WINDO

Re: [PATCH] const variables are not compile-time constants

2010-07-25 Thread Octavian Voicu
On Sun, Jul 25, 2010 at 11:36 PM, Mikko Rasa wrote: > -    static const DWORD user_flags = clip_flags | DCX_NORESETATTRS; /* flags > that can be set by user */ > +    static const DWORD user_flags = DCX_PARENTCLIP | DCX_CLIPSIBLINGS | > DCX_CLIPCHILDREN | DCX_WINDOW > +        | DCX_NORESETATTRS