title: How to disable "enumeration value not explicitly handled in switch" just for one block of switch case?
body: <p>Can you tell me how to disable the compiler/codemodel warning for just one block of switch/case?</p>
  
  <p>In general, I think it is very useful to be warned, but here it complains about 167 enumeration values not explicitly handled in the <code>switch</code>.</p>
  
  <p>I found this other question:</p>
  
  <p><a href="https://stackoverflow.com/questions/37254496/">c++ warning: enumeration value not handled in switch [-Wswitch]</a></p>
  
  <p>It says that you can get rid of the warning with <code>default: break;</code> but in this case (recent QtCreator with clang) this does not apply.</p>
  
  <p>I know I could change the code to <code>if/else if/else if ..</code> but I expect the list of handled cases will grow with time, so I'd prefer to stay with <code>switch/case</code>.</p>
  
  <p>So, my question is, is there any keyword/macro/comment/attribute that says ignore the issue for just this single block?</p>
  
  <p>The following code produces the warning, the other 167 values seem to be the possible return values of <code>QEvent::type()</code>, which are part of Qt:</p>
  
  <pre><code>bool MyClass::event(QEvent * e) {
      switch(e-&gt;type()) {
      case QEvent::HoverEnter:
          qDebug() &lt;&lt; "enter"; 
          return true;
      case QEvent::HoverLeave:
          qDebug() &lt;&lt; "leave"; 
          return true;
      case QEvent::HoverMove:
          qDebug() &lt;&lt; "move"; 
          return true;
      default:
          break;
      }
      return Piece::event(e);
  }
  </code></pre>