[vala/0.42] 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.42] codegen: Add prototype for *_new() of abstact compact classes
- Date: Mon, 5 Nov 2018 08:13:20 +0000 (UTC)
commit a16dfcf99cb0c6ecf6c30cb7ad6011c5af3b84d0
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 b536e749f..2d8bf9e3b 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]