[llvm-commits] [llvm] r168251 - /llvm/trunk/unittests/Support/AlignOfTest.cpp

Sean Silva silvas at purdue.edu
Fri Nov 16 21:06:45 PST 2012


Please kill the smart quotes and trailing whitespace.

On Fri, Nov 16, 2012 at 11:54 PM, Joe Abbey <jabbey at arxan.com> wrote:
> Author: jabbey
> Date: Fri Nov 16 22:54:22 2012
> New Revision: 168251
>
> URL: http://llvm.org/viewvc/llvm-project?rev=168251&view=rev
> Log:
> Suppressing the 'direct base ‘{anonymous}::S1’ inaccessible in ‘{anonymous}::D9’
> due to ambiguity' warning.
>
>
> Modified:
>     llvm/trunk/unittests/Support/AlignOfTest.cpp
>
> Modified: llvm/trunk/unittests/Support/AlignOfTest.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/AlignOfTest.cpp?rev=168251&r1=168250&r2=168251&view=diff
> ==============================================================================
> --- llvm/trunk/unittests/Support/AlignOfTest.cpp (original)
> +++ llvm/trunk/unittests/Support/AlignOfTest.cpp Fri Nov 16 22:54:22 2012
> @@ -22,6 +22,18 @@
>  #pragma warning(disable:4584)
>  #endif
>
> +// Suppress direct base ‘{anonymous}::S1’ inaccessible in ‘{anonymous}::D9’
> +// due to ambiguity warning.
> +//
> +// Pragma based warning suppression was introduced in GGC 4.2.  Additionally
> +// this warning is "enabled by default".  The warning still appears if -Wall is
> +// suppressed.  Apparently GCC suppresses it when -w is specifed, which is odd.
> +// At any rate, clang on the other hand gripes about -Wunknown-pragma, so
> +// leaving it out of this.
> +#if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 402 && !defined(__clang__)
> +#pragma GCC diagnostic warning "-w"
> +#endif
> +
>  // Define some fixed alignment types to use in these tests.
>  #if __has_feature(cxx_alignas)
>  struct alignas(1) A1 { };
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list