diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-11-24 16:05:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 16:05:39 +0300 |
commit | 5ef930b5f82c48e1601916aaeb42e53f32e4003b (patch) | |
tree | 437a994834afa755c16ebdc7ed260f59e57e44c2 /mcs/class/System.Core | |
parent | 7b4dfeebc40cf8c027819b8b7bd85a4e7c87ad50 (diff) |
[bcl] Build some assemblies with -warnaserror (#5295)
* [bcl] Build some assemblies with -warnaserror
This ensures that we keep the build warning free.
We'll only opt-in a few assemblies that already have zero warnings.
We also only apply this when using csc as mcs might raise different warnings.
For now just opt-in assemblies in the net_4_x profile.
Diffstat (limited to 'mcs/class/System.Core')
-rw-r--r-- | mcs/class/System.Core/Makefile | 2 | ||||
-rw-r--r-- | mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs | 14 |
2 files changed, 2 insertions, 14 deletions
diff --git a/mcs/class/System.Core/Makefile b/mcs/class/System.Core/Makefile index 7ac0624eafb..566c5fb5790 100644 --- a/mcs/class/System.Core/Makefile +++ b/mcs/class/System.Core/Makefile @@ -18,6 +18,8 @@ RESX_RESOURCE_STRING = \ ../../../external/corefx/src/System.Linq.Parallel/src/Resources/Strings.resx \ ../../../external/corefx/src/System.Linq.Queryable/src/Resources/Strings.resx +LIBRARY_WARN_AS_ERROR = yes + ifneq (2.1, $(FRAMEWORK_VERSION)) LIB_MCS_FLAGS += -d:NET_3_5 endif diff --git a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs index d4d66bb7ff7..359f8cc9358 100644 --- a/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs +++ b/mcs/class/System.Core/Test/System.Linq.Expressions/ExpressionTest.cs @@ -195,20 +195,6 @@ namespace MonoTests.System.Linq.Expressions { Assert.IsNotNull (identity.Target); } - class Foo { - public string gazonk; - } - - struct Bar { - public int baz; - - public override string ToString () - { - return baz.ToString (); - } - } - - [Test] public void SimpleHoistedParameter () { |