[vala] codegen: Don't define varidic helper *_constructv_full as static
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Don't define varidic helper *_constructv_full as static
- Date: Mon, 16 Sep 2013 12:39:03 +0000 (UTC)
commit 6740f3767d0cf01459f1903eaea726dc2150ffec
Author: Rico Tzschichholz <ricotz t-online de>
Date: Mon Sep 16 14:33:37 2013 +0200
codegen: Don't define varidic helper *_constructv_full as static
Avoid adding the static _constructv_full method to the header file
of libraries since it is causing failures using -Wunused-function.
codegen/valaccodemethodmodule.vala | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 0dc6963..f0cddae 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -205,7 +205,6 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
if (m.is_variadic ()) {
// _constructv function
function = new CCodeFunction (get_constructv_name ((CreationMethod) m));
- function.modifiers |= CCodeModifiers.STATIC;
cparam_map = new HashMap<int,CCodeParameter> (direct_hash, direct_equal);
generate_cparameters (m, decl_space, cparam_map, function);
@@ -413,10 +412,6 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
function.modifiers |= CCodeModifiers.INLINE;
}
- if (m is CreationMethod && m.is_variadic ()) {
- function.modifiers |= CCodeModifiers.STATIC;
- }
-
var cparam_map = new HashMap<int,CCodeParameter> (direct_hash, direct_equal);
generate_cparameters (m, cfile, cparam_map, function);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]