On Wed, Feb 8, 2012 at 8:12 PM, Matt Beaumont-Gay <[email protected]> wrote:
> The documentation for the corresponding MSVC warning states:
>
> "This is legal if:
> * All calls to this function occur from C++.
> * The definition of the function is in C++."
>
> For code which triggers the new warning, but is legal per those
> criteria, how does one silence the warning?

You can either pass in -Wno-return-type on the command line or you can
do it ad hoc with #pragma clang diagnostic ignored "-Wreturn-type"

~Aaron
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to