From: Rico Tzschichholz Date: Mon, 16 Jul 2018 17:30:31 +0000 (+0200) Subject: codegen: Deprecate "finish_function" ccode-attribute X-Git-Tag: 0.43.1~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9de5cddcdb1ecacf093da6ed7560223b72d17738;p=thirdparty%2Fvala.git codegen: Deprecate "finish_function" ccode-attribute This is an alias for "finish_name" --- diff --git a/codegen/valaccodeattribute.vala b/codegen/valaccodeattribute.vala index dc1e87b49..6acdafde9 100644 --- a/codegen/valaccodeattribute.vala +++ b/codegen/valaccodeattribute.vala @@ -470,6 +470,9 @@ public class Vala.CCodeAttribute : AttributeCache { _finish_name = ccode.get_string ("finish_name"); if (_finish_name == null) { _finish_name = ccode.get_string ("finish_function"); + if (_finish_name != null) { + Report.deprecated (node.source_reference, "[CCode (finish_function = \"...\")] is deprecated, use [CCode (finish_name = \"...\")] instead."); + } } } if (_finish_name == null) {