Re: [COMMITTERS] pgsql: Provide some static-assertion functionality on all compilers.

2012-10-19 Thread Andres Freund
On Tuesday, October 16, 2012 11:50:48 PM Tom Lane wrote: > Andres Freund writes: > > On Monday, October 01, 2012 04:46:41 AM Tom Lane wrote: > >> Provide some static-assertion functionality on all compilers. > > > > The current method used here doesn't allow the macro to be used in file > > scope

Re: [COMMITTERS] pgsql: Provide some static-assertion functionality on all compilers.

2012-10-16 Thread Tom Lane
Andres Freund writes: > On Monday, October 01, 2012 04:46:41 AM Tom Lane wrote: >> Provide some static-assertion functionality on all compilers. > The current method used here doesn't allow the macro to be used in file scope > which imo would be rather useful. What about adding something like: I

Re: [COMMITTERS] pgsql: Provide some static-assertion functionality on all compilers.

2012-10-16 Thread Andres Freund
On Monday, October 01, 2012 04:46:41 AM Tom Lane wrote: > Provide some static-assertion functionality on all compilers. > > On reflection (especially after noticing how many buildfarm critters have > __builtin_types_compatible_p but not _Static_assert), it seems like we > ought to try a bit harder

[COMMITTERS] pgsql: Provide some static-assertion functionality on all compilers.

2012-09-30 Thread Tom Lane
Provide some static-assertion functionality on all compilers. On reflection (especially after noticing how many buildfarm critters have __builtin_types_compatible_p but not _Static_assert), it seems like we ought to try a bit harder to make these macros do something everywhere. The initial cut at