From 01520a98590ab8df56e3147a3fcce641875a4e10 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Fri, 26 Jul 2013 18:41:40 -0500 Subject: [PATCH] cairo: Don't disable the deprecation warnings during compilation This makes the "#pragma warning disable 612" in Pattern.cs that were removed previously actually useful, so we add it back. --- cairo/Makefile.am | 2 +- cairo/Pattern.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cairo/Makefile.am b/cairo/Makefile.am index bca514d73..82eb2314c 100644 --- a/cairo/Makefile.am +++ b/cairo/Makefile.am @@ -70,7 +70,7 @@ build_sources = $(addprefix $(srcdir)/, $(sources)) $(builddir)/AssemblyInfo.cs $(ASSEMBLY): $(build_sources) $(SNK) @rm -f $(ASSEMBLY).mdb - $(CSC) $(CSFLAGS) -keyfile:$(SNK) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources) + $(CSC) $(CSFLAGS) -keyfile:$(SNK) -out:$(ASSEMBLY) -target:library $(references) $(build_sources) install-data-local: @if test -n '$(TARGET)'; then \ diff --git a/cairo/Pattern.cs b/cairo/Pattern.cs index a312ac22e..bc0a962a2 100644 --- a/cairo/Pattern.cs +++ b/cairo/Pattern.cs @@ -135,10 +135,12 @@ namespace Cairo { } } +#pragma warning disable 612 public IntPtr Handle { get { return pattern; } private set { pattern = value; } } +#pragma warning restore 612 [Obsolete] public IntPtr Pointer {