version 1.3, 2013/02/18 15:00:19
|
version 1.4, 2013/05/03 05:34:37
|
|
|
is used later on but parameter <i>argc</i> is not. Do this:<br> | is used later on but parameter <i>argc</i> is not. Do this:<br> |
<pre><code>int main(int, void** argv) | <pre><code>int main(int, void** argv) |
{ | { |
};</code></pre> |
}</code></pre> |
Not this:<br> | Not this:<br> |
<pre><code>int main(int argc, void** argv) | <pre><code>int main(int argc, void** argv) |
{ | { |
};</code></pre> |
}</code></pre> |
</li> | </li> |
<li>Avoid unused variables when the return value of a function is | <li>Avoid unused variables when the return value of a function is |
assigned to a variable only to be used to do an assert check | assigned to a variable only to be used to do an assert check |