Merge branch 'implicit-function-declaration' of github.com:MathiasVP/ql into implicit-function-declaration

This commit is contained in:
Mathias Vorreiter Pedersen
2020-01-17 14:52:23 +01:00

View File

@@ -7,7 +7,7 @@
<overview>
<p>A function is called without a prior function declaration or definition.
When this happens, the compiler generates an implicit declaration of the function,
specifying an integer return type and no parameters.</p>
specifying an integer return type and no parameters.
</p>
<p>This may indicate a misspelled function name, or that the required header containing
@@ -23,6 +23,6 @@ the function declaration has not been included.</p>
</example>
<references>
<li>SEI CERT C Coding Standard: <a href="https://wiki.sei.cmu.edu/confluence/display/c/DCL31-C.+Declare+identifiers+before+using+them"> DCL20-C. Explicitly specify void when a function accepts no arguments </a></li>
<li>SEI CERT C Coding Standard: <a href="https://wiki.sei.cmu.edu/confluence/display/c/DCL31-C.+Declare+identifiers+before+using+them">DCL31-C. Declare identifiers before using them</a></li>
</references>
</qhelp>