void cast of argc and argv
<p>I'm looking at a piece of C++ code, and the first line in the main function caught my attention:</p>

<pre><code>int main(int argc, const char* argv[]) {
    (void)argc; (void)argv;
     ...
}
</code></pre>

<p>Apart from this line argc and argv aren't used at all. Why is the author doing a void cast? Could it be to stop the compiler from complaining about unused variables?</p>
