How do I get rid of the unused parameter warning in C with gcc 4.8.4 [-Wunused-parameter]
<p>Using gcc 4.8.4 -Wall -Wextra -Wpedantic. I want to use argv for the executable name and have no need for argc.</p>

<p>If I do</p>

<pre><code>int main(int argc, char *argv[])
</code></pre>

<p>I get this warning:</p>

<pre><code>abc.c:5:14: warning: unused parameter ‘argc’ [-Wunused-parameter]
</code></pre>

<p>In the past I have just done</p>

<pre><code>int main(int, char *argv[])
</code></pre>

<p>to get rid of the warning, but that may have been C++. Now I get an error:</p>

<pre><code>abc.c:5:1: error: parameter name omitted
</code></pre>

<p>Is there a way to access argv and not get a warning for not accessing argc (with gcc warnings turned on)?</p>