From 5f271e04fa71875805694cfeb0cdc6d2137956d0 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Mon, 12 Aug 2013 11:17:09 +0200 Subject: [PATCH] generator: ignore private structs completely Don't spam the log with these messages for private structs (and don't count this in the statistics), as there are too many. These kind of types are just empty structs marked as hidden and private. --- generator/FieldBase.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generator/FieldBase.cs b/generator/FieldBase.cs index b2985ac97..1c2a30c9a 100644 --- a/generator/FieldBase.cs +++ b/generator/FieldBase.cs @@ -32,6 +32,8 @@ namespace GtkSharp.Generation { { log.Member = Name; if (!Ignored && !Hidden && CSType == "") { + if (Name == "Priv") + return false; log.Warn ("field has unknown type: " + CType); Statistics.ThrottledCount++; return false;