Browse Source

Silence verbose duplicate constructor and operator warnings.

pull/1139/head
Joao Matos 8 years ago
parent
commit
5a1db5268e
  1. 2
      src/Generator/Passes/CheckDuplicatedNamesPass.cs

2
src/Generator/Passes/CheckDuplicatedNamesPass.cs

@ -71,12 +71,10 @@ namespace CppSharp.Passes @@ -71,12 +71,10 @@ namespace CppSharp.Passes
{
// TODO: turn into a method; append the original type (say, "signed long")
// of the last parameter to the type so that the user knows which overload is called
Diagnostics.Warning("Duplicate operator {0} ignored", function.Name);
function.ExplicitlyIgnore();
}
else if (method != null && method.IsConstructor)
{
Diagnostics.Warning("Duplicate constructor {0} ignored", function.Name);
function.ExplicitlyIgnore();
}
else

Loading…
Cancel
Save