<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[MISRA Discussion Forums - 8.8 Declarations and defnitions]]></title>
		<link>https://forum.misra.org.uk/</link>
		<description><![CDATA[MISRA Discussion Forums - https://forum.misra.org.uk]]></description>
		<pubDate>Thu, 05 Nov 2026 13:03:38 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[It 8.12 intended to be so strict?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1774</link>
			<pubDate>Thu, 25 Jun 2026 22:05:26 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=6753">Loïc</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1774</guid>
			<description><![CDATA[Hello,<br />
<br />
It is clear by looking at the title of rule 8.12 <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Within an enumerator list, the value of an implicitly-specified enumeration constant shall be unique</blockquote>
<br />
That the following code is non-compliant:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>// Non-compliant, yellow has an implixitly defined value that it shares with last<br />
enum colour { red, blue, green, yellow, last = yellow };</code></div></div><br />
This is a relatively common pattern, and the alternatives seem worse.<br />
<br />
It is the intent of this rule to prevent this pattern, or is it just a result of the wording?<br />
By the way, this code is compliant with the C++ version of this rule in MISRA C++:2023.]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
It is clear by looking at the title of rule 8.12 <br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Within an enumerator list, the value of an implicitly-specified enumeration constant shall be unique</blockquote>
<br />
That the following code is non-compliant:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>// Non-compliant, yellow has an implixitly defined value that it shares with last<br />
enum colour { red, blue, green, yellow, last = yellow };</code></div></div><br />
This is a relatively common pattern, and the alternatives seem worse.<br />
<br />
It is the intent of this rule to prevent this pattern, or is it just a result of the wording?<br />
By the way, this code is compliant with the C++ version of this rule in MISRA C++:2023.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[8.2 Function types shall be in prototype form with named parameters]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1634</link>
			<pubDate>Tue, 27 Sep 2022 12:02:52 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5801">sowisojh</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1634</guid>
			<description><![CDATA[Given is the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>myheader.h<br />
<br />
/* define a type of a callback function */<br />
typedef uint16_t(my_callback_fct_t)(uint16_t const *a);<br />
<br />
<br />
myimplementation.c<br />
<br />
#include "myheader.h"<br />
<br />
/* function declaration of myCallbackFunction */<br />
static my_callback_fct_t myCallbackFunction;<br />
<br />
[...]<br />
<br />
/* function definition of myCallbackFunction */<br />
static uint16_t myCallbackFunction(uint16_t const *a)<br />
{<br />
  return (*a) + (uint16_t)1u;<br />
}</code></div></div><br />
Does the function declaration of <span style="font-style: italic;" class="mycode_i">myCallbackFunction</span> in the above code comply with the Rule 8.2?<br />
As the prototype specifies the parameters by usage of the type <span style="font-style: italic;" class="mycode_i">my_callback_fct_t</span> and this prototype includes all the parameter and their names I would treat this as a correct prototype as requested by Rule 8.2. even though this is not explicitly listed as being compliant in the MISRA standard.<br />
<br />
The background for this kind of function prototyping is to tie the function to an externally defined function prototype which will be used for callbacks in another part of the code.<br />
<br />
kind regards<br />
sowiso]]></description>
			<content:encoded><![CDATA[Given is the following code:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>myheader.h<br />
<br />
/* define a type of a callback function */<br />
typedef uint16_t(my_callback_fct_t)(uint16_t const *a);<br />
<br />
<br />
myimplementation.c<br />
<br />
#include "myheader.h"<br />
<br />
/* function declaration of myCallbackFunction */<br />
static my_callback_fct_t myCallbackFunction;<br />
<br />
[...]<br />
<br />
/* function definition of myCallbackFunction */<br />
static uint16_t myCallbackFunction(uint16_t const *a)<br />
{<br />
  return (*a) + (uint16_t)1u;<br />
}</code></div></div><br />
Does the function declaration of <span style="font-style: italic;" class="mycode_i">myCallbackFunction</span> in the above code comply with the Rule 8.2?<br />
As the prototype specifies the parameters by usage of the type <span style="font-style: italic;" class="mycode_i">my_callback_fct_t</span> and this prototype includes all the parameter and their names I would treat this as a correct prototype as requested by Rule 8.2. even though this is not explicitly listed as being compliant in the MISRA standard.<br />
<br />
The background for this kind of function prototyping is to tie the function to an externally defined function prototype which will be used for callbacks in another part of the code.<br />
<br />
kind regards<br />
sowiso]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.7: clarifications of no linkage for an object]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1618</link>
			<pubDate>Thu, 28 Apr 2022 06:18:24 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5215">chenzhuowansui</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1618</guid>
			<description><![CDATA[Hi there,<br />
<br />
could anyone help explain the following sentence in the Rationale part of Rule 8.7<br />
<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Restricting the visibility of an object by giving it internal linkage or no linkage reduces the chance that<br />
it might be accessed inadvertently.</blockquote>
<br />
<br />
as specified by the C standard:<br />
<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>If the declaration of an identifier for a function has no storage-class specifier, its linkage<br />
is determined exactly as if it were declared with the storage-class specifier extern. If<br />
the declaration of an identifier for an object has file scope and no storage-class specifier,<br />
its linkage is external.</blockquote>
<br />
<br />
if an object is declared with no linkage, the default linkage is external linkage, so why giving no linkage to an object could restrict the visibility and reduces the chance that it might be accessed inadvertently?<br />
<br />
thanks!]]></description>
			<content:encoded><![CDATA[Hi there,<br />
<br />
could anyone help explain the following sentence in the Rationale part of Rule 8.7<br />
<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>Restricting the visibility of an object by giving it internal linkage or no linkage reduces the chance that<br />
it might be accessed inadvertently.</blockquote>
<br />
<br />
as specified by the C standard:<br />
<br />
<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>If the declaration of an identifier for a function has no storage-class specifier, its linkage<br />
is determined exactly as if it were declared with the storage-class specifier extern. If<br />
the declaration of an identifier for an object has file scope and no storage-class specifier,<br />
its linkage is external.</blockquote>
<br />
<br />
if an object is declared with no linkage, the default linkage is external linkage, so why giving no linkage to an object could restrict the visibility and reduces the chance that it might be accessed inadvertently?<br />
<br />
thanks!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule8.9 applicability to const ?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1580</link>
			<pubDate>Fri, 24 Sep 2021 13:49:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5705">Soren_Kolbach_Hansen</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1580</guid>
			<description><![CDATA[Hello, <br />
<br />
I have a question regarding rule 8.9.<br />
<br />
We are currenly using static const instead of defines at the top of our files to manage implementation specific constants, however this is being flagged as a violation of rule8.9 if only used in one function, however as per the rationale of 8.9 this does not make all that much sense to us, is this really the intent of the rule?<br />
<br />
Best regards<br />
<br />
Soren]]></description>
			<content:encoded><![CDATA[Hello, <br />
<br />
I have a question regarding rule 8.9.<br />
<br />
We are currenly using static const instead of defines at the top of our files to manage implementation specific constants, however this is being flagged as a violation of rule8.9 if only used in one function, however as per the rationale of 8.9 this does not make all that much sense to us, is this really the intent of the rule?<br />
<br />
Best regards<br />
<br />
Soren]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Definition of "object"]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1486</link>
			<pubDate>Wed, 17 Apr 2019 00:21:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=5198">mz99</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1486</guid>
			<description><![CDATA[The word "object" is used in some rules of MISRA-C:2012. (e.g. Rule-8.9)<br />
What is the definition of "object" in MISRA-C:2012?<br />
Which of the following are considered as "object" in MISRA-C:2012?<br />
<ul class="mycode_list"><li>Variable</li>
</ul>
<ul class="mycode_list"><li>Const-qualified variable</li>
</ul>
<ul class="mycode_list"><li>Function</li>
</ul>
<ul class="mycode_list"><li>Object-like macro</li>
</ul>
<ul class="mycode_list"><li>Function-like macro</li>
</ul>
]]></description>
			<content:encoded><![CDATA[The word "object" is used in some rules of MISRA-C:2012. (e.g. Rule-8.9)<br />
What is the definition of "object" in MISRA-C:2012?<br />
Which of the following are considered as "object" in MISRA-C:2012?<br />
<ul class="mycode_list"><li>Variable</li>
</ul>
<ul class="mycode_list"><li>Const-qualified variable</li>
</ul>
<ul class="mycode_list"><li>Function</li>
</ul>
<ul class="mycode_list"><li>Object-like macro</li>
</ul>
<ul class="mycode_list"><li>Function-like macro</li>
</ul>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.7 clarification needed]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1459</link>
			<pubDate>Wed, 28 Nov 2018 10:49:51 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=980">GerlindeKettl</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1459</guid>
			<description><![CDATA[I have a project with functions which architecturally belong to one file and have external linkage so that they can be called from other parts of the software. A code checker tool claims that if one of these functions is called only from one other file in the project, this is a rule 8.7 violation and that I should move the definition of the function to the file which calls it (which would mess up the functional partitioning). Is this really intended by rule 8.7?<br />
<br />
The rationale of the rule says: â€œSimilarly, reducing the visibility of a function by giving it internal linkage reduces the chance of it being called inadvertently.â€ So, I've interpreted this rule as "if you use a function only in the translation unit where it is defined, make it static". But for example library functions are intended to be called by anyone who needs them and cannot be called inadvertently.<br />
<br />
Could you please clarify what the correct interpretation is?]]></description>
			<content:encoded><![CDATA[I have a project with functions which architecturally belong to one file and have external linkage so that they can be called from other parts of the software. A code checker tool claims that if one of these functions is called only from one other file in the project, this is a rule 8.7 violation and that I should move the definition of the function to the file which calls it (which would mess up the functional partitioning). Is this really intended by rule 8.7?<br />
<br />
The rationale of the rule says: â€œSimilarly, reducing the visibility of a function by giving it internal linkage reduces the chance of it being called inadvertently.â€ So, I've interpreted this rule as "if you use a function only in the translation unit where it is defined, make it static". But for example library functions are intended to be called by anyone who needs them and cannot be called inadvertently.<br />
<br />
Could you please clarify what the correct interpretation is?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.3: int n[4] vs. int n[] ?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1398</link>
			<pubDate>Tue, 06 Feb 2018 14:46:49 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=3355">swestin</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1398</guid>
			<description><![CDATA[Within the context of this rule, is the following definition/declaration pair allowed?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>int n[4];<br />
<br />
<br />
int n[];</code></div></div>]]></description>
			<content:encoded><![CDATA[Within the context of this rule, is the following definition/declaration pair allowed?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>int n[4];<br />
<br />
<br />
int n[];</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.5: Declarations vs Redeclarations in MISRA C versus MISRA C++]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1321</link>
			<pubDate>Thu, 02 Mar 2017 12:45:06 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=4406">RichardC</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1321</guid>
			<description><![CDATA[MISAR C++ 2008 provides a Glossary entry for 'declaration' with:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>  For the purposes of this standard, in headline rule text a<br />
  declaration is the first introduction of a name into a translation<br />
  unit. All subsequent â€œdeclarationsâ€ (as per ISO/IEC 14882:2003 [1]<br />
  Â§3.2(1)) are re-declarations.</blockquote>
<br />
This appears to differ from the MISRA C 2012 interpretation.  Rule 8.5<br />
includes the text:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>... shall be declared once in one and only one file.</blockquote>
<br />
According to the MISRA C++ glossary entry, the use of "once" in the headline<br />
text is redundant, as any additional declarations are "re-declarations".<br />
<br />
Is the MISRA C meaning intended to be different to that of MISRA C++ 2008?<br />
<br />
If so, could you provide an example where it is dangerous to use re-declarations?]]></description>
			<content:encoded><![CDATA[MISAR C++ 2008 provides a Glossary entry for 'declaration' with:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>  For the purposes of this standard, in headline rule text a<br />
  declaration is the first introduction of a name into a translation<br />
  unit. All subsequent â€œdeclarationsâ€ (as per ISO/IEC 14882:2003 [1]<br />
  Â§3.2(1)) are re-declarations.</blockquote>
<br />
This appears to differ from the MISRA C 2012 interpretation.  Rule 8.5<br />
includes the text:<br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>... shall be declared once in one and only one file.</blockquote>
<br />
According to the MISRA C++ glossary entry, the use of "once" in the headline<br />
text is redundant, as any additional declarations are "re-declarations".<br />
<br />
Is the MISRA C meaning intended to be different to that of MISRA C++ 2008?<br />
<br />
If so, could you provide an example where it is dangerous to use re-declarations?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.3 type qualifier]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1282</link>
			<pubDate>Fri, 07 Oct 2016 01:38:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=3977">Motozo Mario Ikeda</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1282</guid>
			<description><![CDATA["Type qualifier" and "Storage class specifier" are mentioned in Rule 8.3, but "Type specifier" is not.<br />
<br />
Should we think "Type qualifier" includes "Type specifier"?<br />
<br />
Thank you,<br />
Mario Ikeda]]></description>
			<content:encoded><![CDATA["Type qualifier" and "Storage class specifier" are mentioned in Rule 8.3, but "Type specifier" is not.<br />
<br />
Should we think "Type qualifier" includes "Type specifier"?<br />
<br />
Thank you,<br />
Mario Ikeda]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.4 - main function]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1237</link>
			<pubDate>Wed, 20 Apr 2016 16:44:25 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=4245">delta_controls</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1237</guid>
			<description><![CDATA[Should this rule have an exception for main?  I can't see how main is automatically excluded from this rule.  Is the expectation that a prototype is provided for main?  <br />
<br />
Thanks.]]></description>
			<content:encoded><![CDATA[Should this rule have an exception for main?  I can't see how main is automatically excluded from this rule.  Is the expectation that a prototype is provided for main?  <br />
<br />
Thanks.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.4: Prototype for function with internal linkage required?]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1212</link>
			<pubDate>Wed, 04 Nov 2015 14:51:53 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=3337">aletomm</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1212</guid>
			<description><![CDATA[Does MISRA-C 2012 mandate prototypes for functions with <span style="text-decoration: underline;" class="mycode_u">internal linkage</span>?<br />
<br />
While MISRA-C 2012 rule 8.4 is very explicit about prototypes for functions with external linkage, we have not found a corresponding rule for internally linked functions.<br />
<br />
Our static analysis tool takes the simplistic approach that prototypes are required in <span style="font-weight: bold;" class="mycode_b">any</span> case due to MISRA-C 2004 8.1 rule. I like to challenge its reasoning.<br />
<br />
Thanks.]]></description>
			<content:encoded><![CDATA[Does MISRA-C 2012 mandate prototypes for functions with <span style="text-decoration: underline;" class="mycode_u">internal linkage</span>?<br />
<br />
While MISRA-C 2012 rule 8.4 is very explicit about prototypes for functions with external linkage, we have not found a corresponding rule for internally linked functions.<br />
<br />
Our static analysis tool takes the simplistic approach that prototypes are required in <span style="font-weight: bold;" class="mycode_b">any</span> case due to MISRA-C 2004 8.1 rule. I like to challenge its reasoning.<br />
<br />
Thanks.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.10, I don't understand the Rationale]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1198</link>
			<pubDate>Wed, 05 Aug 2015 15:45:48 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=307">fpeelo</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1198</guid>
			<description><![CDATA[The Rationale for rule 8.10 says that inline functions with external linkage are not to be used, because it is not defined whether the function will in fact be inlined, or the external definition will be called.<br />
<br />
However, this is also not defined for static functions: "Making a function an inline function suggests that calls to the function be as fast as possible. The extent to which such suggestions are effective is implementation-defined." (I'm using a draft of the C99 standard,  <a href="http://www.open-std.org/JTC1/sc22/wg14/www/docs/n1256.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.open-std.org/JTC1/sc22/wg14/w.../n1256.pdf</a> and this is 6.7.4.5. Footnote 121 spells it out more clearly: "For example, an implementation might never perform inline substitution...".)<br />
<br />
So the behaviour of static inline functions is undefined in the same way as inline functions with external linkage. <br />
<br />
It has been suggested that inline functions defined in header files should be defined with static linkage. Paragraph 6.7.4.3 of the above pdf says external linkage cannot reference indentifiers with internal linkage, but paragraph 6.7.4.6 says that any function with internal linkage can be inlined. So if an inline function is declared static, it can have local static variables. But there will be a different instance of the inline function for each .c file which includes the header with the function's definition, and each would have its own static variables! Effectively, you have a function definition with a static variable, the value of which differs depending on where it is called from. This will surely be unexpected behaviour to some programmers, and is therefore dangerous. <br />
<br />
Was this considered when specifying that all inline functions should be static? Or is the draft wildly different from the final C99 spec?]]></description>
			<content:encoded><![CDATA[The Rationale for rule 8.10 says that inline functions with external linkage are not to be used, because it is not defined whether the function will in fact be inlined, or the external definition will be called.<br />
<br />
However, this is also not defined for static functions: "Making a function an inline function suggests that calls to the function be as fast as possible. The extent to which such suggestions are effective is implementation-defined." (I'm using a draft of the C99 standard,  <a href="http://www.open-std.org/JTC1/sc22/wg14/www/docs/n1256.pdf" target="_blank" rel="noopener" class="mycode_url">http://www.open-std.org/JTC1/sc22/wg14/w.../n1256.pdf</a> and this is 6.7.4.5. Footnote 121 spells it out more clearly: "For example, an implementation might never perform inline substitution...".)<br />
<br />
So the behaviour of static inline functions is undefined in the same way as inline functions with external linkage. <br />
<br />
It has been suggested that inline functions defined in header files should be defined with static linkage. Paragraph 6.7.4.3 of the above pdf says external linkage cannot reference indentifiers with internal linkage, but paragraph 6.7.4.6 says that any function with internal linkage can be inlined. So if an inline function is declared static, it can have local static variables. But there will be a different instance of the inline function for each .c file which includes the header with the function's definition, and each would have its own static variables! Effectively, you have a function definition with a static variable, the value of which differs depending on where it is called from. This will surely be unexpected behaviour to some programmers, and is therefore dangerous. <br />
<br />
Was this considered when specifying that all inline functions should be static? Or is the draft wildly different from the final C99 spec?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[8.3 and parameter name omitted.]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1192</link>
			<pubDate>Wed, 01 Jul 2015 07:29:54 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=1443">lovewar</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1192</guid>
			<description><![CDATA[Would the following examples be compliant with rule #8.3?<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>-- in t1.h<br />
extern int foo(int);<br />
<br />
-- t2.c<br />
#include "t1.h"<br />
<br />
int foo(int value) {&nbsp;&nbsp;// here(parameter name do not match)<br />
}</code></div></div>]]></description>
			<content:encoded><![CDATA[Would the following examples be compliant with rule #8.3?<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>-- in t1.h<br />
extern int foo(int);<br />
<br />
-- t2.c<br />
#include "t1.h"<br />
<br />
int foo(int value) {&nbsp;&nbsp;// here(parameter name do not match)<br />
}</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.6: External declaration without definition]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1188</link>
			<pubDate>Tue, 16 Jun 2015 12:10:57 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=3496">Polyspacer</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1188</guid>
			<description><![CDATA[I have a header file MISRA_8.6.h, in which a variable is declared:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>extern signed short int Variable;</code></div></div><br />
And I have the corresponding c-file MISRA_8.6.c, which uses the variable as input. <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include "MISRA_8.6.h"<br />
<br />
signed short int A; <br />
<br />
void main(void) <br />
{<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;/*8.6*/<br />
&nbsp;&nbsp;&nbsp;&nbsp;A = Variable;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
}</code></div></div><br />
The c-file defining the variable is out of scope. Is rule 8.6 violated by this setting or is another rule 8.x violated?]]></description>
			<content:encoded><![CDATA[I have a header file MISRA_8.6.h, in which a variable is declared:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>extern signed short int Variable;</code></div></div><br />
And I have the corresponding c-file MISRA_8.6.c, which uses the variable as input. <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include "MISRA_8.6.h"<br />
<br />
signed short int A; <br />
<br />
void main(void) <br />
{<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;/*8.6*/<br />
&nbsp;&nbsp;&nbsp;&nbsp;A = Variable;<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
}</code></div></div><br />
The c-file defining the variable is out of scope. Is rule 8.6 violated by this setting or is another rule 8.x violated?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Rule 8.4 the combination of the tentative definitions]]></title>
			<link>https://forum.misra.org.uk/showthread.php?tid=1164</link>
			<pubDate>Thu, 12 Mar 2015 08:12:07 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.misra.org.uk/member.php?action=profile&uid=2927">satoshi</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.misra.org.uk/showthread.php?tid=1164</guid>
			<description><![CDATA[How should treat the combination of the tentative definitions?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>int i;&nbsp;&nbsp;/* treated as declaration ? */<br />
int i;&nbsp;&nbsp;/* treated as definition ? */</code></div></div><br />
or...<br />
If only tentative definitions exists, we should consider that the compatible declaration is not exist?]]></description>
			<content:encoded><![CDATA[How should treat the combination of the tentative definitions?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>int i;&nbsp;&nbsp;/* treated as declaration ? */<br />
int i;&nbsp;&nbsp;/* treated as definition ? */</code></div></div><br />
or...<br />
If only tentative definitions exists, we should consider that the compatible declaration is not exist?]]></content:encoded>
		</item>
	</channel>
</rss>