[vala/0.40] codegen: Add prototype for *_new() of abstact compact classes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] codegen: Add prototype for *_new() of abstact compact classes
- Date: Mon, 5 Nov 2018 08:13:28 +0000 (UTC)
commit 5e704d6fe32557d39a9e5038bd8a72615fd8fdb3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Nov 5 08:28:08 2018 +0100
codegen: Add prototype for *_new() of abstact compact classes
Found with -Werror=missing-prototypes
codegen/valaccodemethodmodule.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 373736d11..80d86139f 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -197,7 +197,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
var cl = m.parent_symbol as Class;
// do not generate _new functions for creation methods of abstract classes
- if (!(m is CreationMethod && cl != null && cl.is_abstract)) {
+ if (!(m is CreationMethod && cl != null && cl.is_abstract && !cl.is_compact)) {
bool etv_tmp = ellipses_to_valist;
ellipses_to_valist = false;
generate_cparameters (m, decl_space, cparam_map, function, null, carg_map, new
CCodeFunctionCall (new CCodeIdentifier ("fake")));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]