Re: [CPP] Add pragmas for emitting diagnostics

2012-09-27 Thread Florian Weimer
On 09/26/2012 10:19 PM, Tom Tromey wrote: "Florian" == Florian Weimer writes: Florian> This patch adds support for #pragma GCC warning and #pragma GCC Florian> error. These pragmas can be used from preprocessor macros, Florian> unlike the existing #warning and #error directives. Library Flori

Re: [CPP] Add pragmas for emitting diagnostics

2012-09-26 Thread Robert Dewar
On 9/26/2012 4:19 PM, Tom Tromey wrote: "Florian" == Florian Weimer writes: Florian> This patch adds support for #pragma GCC warning and #pragma GCC Florian> error. These pragmas can be used from preprocessor macros, Florian> unlike the existing #warning and #error directives. Library Florian

Re: [CPP] Add pragmas for emitting diagnostics

2012-09-26 Thread Tom Tromey
> "Florian" == Florian Weimer writes: Florian> This patch adds support for #pragma GCC warning and #pragma GCC Florian> error. These pragmas can be used from preprocessor macros, Florian> unlike the existing #warning and #error directives. Library Florian> authors can use these pragmas to ad

Re: [CPP] Add pragmas for emitting diagnostics

2012-09-26 Thread Basile Starynkevitch
On Tue, Sep 25, 2012 at 04:25:08PM +0200, Florian Weimer wrote: > This patch adds support for #pragma GCC warning and #pragma GCC > error. These pragmas can be used from preprocessor macros, unlike > the existing #warning and #error directives. Library authors can > use these pragmas to add deprec

[CPP] Add pragmas for emitting diagnostics

2012-09-25 Thread Florian Weimer
This patch adds support for #pragma GCC warning and #pragma GCC error. These pragmas can be used from preprocessor macros, unlike the existing #warning and #error directives. Library authors can use these pragmas to add deprecation warnings to macros they define. Bootstrapped and tested on x8