title: clearing an object of type 'struct ' with no trivial copy-assignment; use assignment or value-initialization instead
body: <p>I am working on a module containing C and C++ codes. The problem is that I am getting the following forbidden warning. I provided the code that Is causing that warning.</p>
  
  <pre><code>warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct OtherStructure_s ' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]\n")
  </code></pre>
  
  <hr>
  
  <pre><code>struct TEST {
    explicit TEST();
    OtherStructure_s _otherStructure;
  };
  
  TEST::TEST(){
    memset(&amp;_otherStructure, 0, sizeof(OtherStructure_s));
  }
  </code></pre>
  
  <p>What is the best solution to remove that warning? If I initialize the structure in the constructor as if
  <code>TEST::TEST():_otherStructure(){}</code> will that be a good solution?</p>