diff options
author | Ali Sabil <ali.sabil@gmail.com> | 2018-11-01 14:06:52 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-01 14:38:29 +0100 |
commit | 884a6f9276cb09a6c0a7c55c7625f09b5417cf70 (patch) | |
tree | f5a48e34774f38a6777aeb831bd320d8200a2e4f /codegen/valaccodebasemodule.vala | |
parent | b85093705878261f7c916f0db713d2783c23e64e (diff) | |
download | vala-884a6f9276cb09a6c0a7c55c7625f09b5417cf70.tar.gz |
codegen: Fix regex literal compile flags
The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading
to a C compiler warning.
Diffstat (limited to 'codegen/valaccodebasemodule.vala')
-rw-r--r-- | codegen/valaccodebasemodule.vala | 4 |
1 files changed, 2 insertions, 2 deletions
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); |