[vala/staging] codegen: Add prototype for *_new() of abstact compact classes
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] codegen: Add prototype for *_new() of abstact compact classes
- Date: Mon, 5 Nov 2018 07:32:06 +0000 (UTC)
commit 42895d70dffc6d1e2b4eee5781f433fc10897fa6
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 5aba1446e..999f11901 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -198,7 +198,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]