From: Ali Sabil Date: Thu, 1 Nov 2018 13:06:52 +0000 (+0100) Subject: codegen: Fix regex literal compile flags X-Git-Tag: 0.43.1~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884a6f9276cb09a6c0a7c55c7625f09b5417cf70;p=thirdparty%2Fvala.git codegen: Fix regex literal compile flags The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading to a C compiler warning. --- diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala index 45fb7975f..aa7d91cab 100644 --- a/codegen/valaccodebasemodule.vala +++ b/codegen/valaccodebasemodule.vala @@ -4077,7 +4077,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { fun.modifiers = CCodeModifiers.STATIC | CCodeModifiers.INLINE; fun.add_parameter (new CCodeParameter ("re", "GRegex**")); fun.add_parameter (new CCodeParameter ("pattern", "const gchar *")); - fun.add_parameter (new CCodeParameter ("match_options", "GRegexMatchFlags")); + fun.add_parameter (new CCodeParameter ("compile_flags", "GRegexCompileFlags")); push_function (fun); @@ -4087,7 +4087,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator { var regex_new_call = new CCodeFunctionCall (new CCodeIdentifier ("g_regex_new")); regex_new_call.add_argument (new CCodeConstant ("pattern")); - regex_new_call.add_argument (new CCodeConstant ("match_options")); + regex_new_call.add_argument (new CCodeConstant ("compile_flags")); regex_new_call.add_argument (new CCodeConstant ("0")); regex_new_call.add_argument (new CCodeConstant ("NULL")); ccode.add_assignment (new CCodeIdentifier ("GRegex* val"), regex_new_call);