title: Visual Studio build vs intellisense warnings. What is the difference, and why does pragma warning(disable) not remove intellisense warning?
body: <p>Been trying to clean up warnings on a project. I've been disabling warnings for certain 3rd party include files, and I'm at the point that if I set the filter in the &quot;Error List&quot; to &quot;Build Only&quot;, I'm not getting any warnings, but I still see close to 200 warnings if I set the filter to &quot;IntelliSense Only&quot; or &quot;Build + Intellisense&quot;.</p>
  <p>I'm don't quite get what the difference is, or how to disable certain warnings for both build and intellisense. For example, I'm getting warning C6263: Using _alloca in a loop: this can quickly overflow the stack.&quot; in any place that we use the T2W or A2W macro, even in a file that I'm pretty sure I've disabled the warning using this in our stdafx.h file:</p>
  <pre><code>#pragma warning(push)
  #pragma warning(disable: 6263)
  #include &lt;atldlgs.h&gt;
  #pragma warning(pop)
  </code></pre>
  <p>I'm not sure why the warning is an IntelliSense warning and not a Build warning, (i.e. I don't see anything in the build output that reflects the warning I see in the Error List window), and I'm not sure how you can disable IntelliSense warnings via pragmas.</p>
  <p>Note that I'm not trying to disable code analysis, or IntelliSense. I'm trying to disable SOME of the warnings that are showing up in the &quot;Error List&quot; window when building, which appear to come from IntelliSense.</p>