title: Pc Lint, how to suppress err 613(Possible use of null ponter) for class with init()
body: <p>Tried to simplify the situation as much as possible. So I have a class:</p>
  
  <pre><code>class C
  {
      int * field;
  public:
      C() : field(nullptr) {}
      void init(int* f) { field = f; }
  
      int getI1() { return *field; }
      int getI2() { return *field; }
  };
  </code></pre>
  
  <p>which generates 2 Lint warnings 613 (Possible use of null pointer 'C::i'...)</p>
  
  <p>I know that "field" won't be null when getI1() or getI2() are called. And unfortunately I cannot initialize it in constructor. So I want to suppress Lint warnings. I can do it like this</p>
  
  <pre><code>class C
  {
      int * field;
  public:
      C() : field(nullptr) {}
      void init(int* f) { field = f; }
  
      int getI1() { return *field; } //lint !e613
      int getI2() { return *field; } //lint !e613
  };
  </code></pre>
  
  <p>but in my real case:</p>
  
  <p>1) There are rather many such classes and each class has many
      functions that use this pointer.</p>
  
  <p>2) My managements doesn't allow me to add too many lint
      comments in the code.</p>
  
  <p>So my question: does anyone know a command-line option that will let me tell Lint "I know the code is not best, just stop checking this particular member variable for null"?</p>
  
  <p>Something similar to -sem parameter, maybe?</p>