diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 936141e9..3bf1e2c1 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -261,7 +261,6 @@ namespace CppSharp public string OutputNamespace; public string OutputDir; public string LibraryName; - private string inlinesLibraryName; public bool OutputInteropIncludes; public bool GenerateLibraryNamespace; public bool GenerateFunctionTemplates; @@ -275,6 +274,7 @@ namespace CppSharp public int MaxIndent; public string CommentPrefix; + private string inlinesLibraryName; public string InlinesLibraryName { get diff --git a/src/Generator/Passes/CheckIgnoredDecls.cs b/src/Generator/Passes/CheckIgnoredDecls.cs index c09bf07f..ea3246ef 100644 --- a/src/Generator/Passes/CheckIgnoredDecls.cs +++ b/src/Generator/Passes/CheckIgnoredDecls.cs @@ -90,7 +90,8 @@ namespace CppSharp.Passes if (retClass == null) { function.ExplicityIgnored = true; - Console.WriteLine("Function '{0}' was ignored due to an indirect return param not of a tag type", + Driver.Diagnostics.EmitWarning( + "Function '{0}' was ignored due to an indirect return param not of a tag type", function.Name); return false; }