Examples of errors detected by the V3070 diagnostic.


V3070. Uninitialized variables are used when initializing the 'A' variable.


Mono

V3070 Uninitialized variable 'schema' is used when initializing the 'ResourceSchema' variable. ResXResourceWriter.cs 59


class ResXResourceWriter : IResourceWriter, IDisposable
{
  ....
  public static readonly string ResourceSchema = schema;  // <=
  ....
  static string schema = ....;                            // <=
  ....
}

PascalABC.NET

V3070 Uninitialized variable 'event_add_method_prefix' is used when initializing the 'event_add_method_nameformat' variable. TreeConverter compiler_string_consts.cs 313


public static class compiler_string_consts
{
  ....
  public static string event_add_method_nameformat =
         event_add_method_prefix + "{0}";
  ....
  public static string event_add_method_prefix = "add_";
  ....
}

Similar errors can be found in some other places:

  • V3070 Uninitialized variable 'event_remove_method_prefix' is used when initializing the 'event_remove_method_nameformat' variable. TreeConverter compiler_string_consts.cs 314


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++, and C#

goto PVS-Studio;
We use cookies for the analysis of events to improve our content and make user interaction more convenient. By continuing the view of our web-pages you accept the terms of using these files. You can find out more about cookie-files and privacy policy or close the notification, by clicking on the button. Learn More →
Do not show again