Posts: 3
Threads: 2
Joined: Aug 2018
Reputation:
0
Hi,
I am facing the MISRA.VAR.HIDDEN error.
When i defined the function prototype with parameters and using the same parameters name while calling the function.
Can any one give me suggestion how can it will be modified to avoid the error.
Thanks in advance.
<t></t>
Posts: 117
Threads: 25
Joined: Apr 2016
Reputation:
0
Can you provide a code snippet demonstrating the problem?
Also, which rule is reported as being violated (i assume MISRA.VAR.HIDDEN is some kind of incomplete static analyis tool output)?
<t></t>
Posts: 27
Threads: 5
Joined: Sep 2004
Reputation:
0
Hi
This looks to be a tool specific question. They support team for the tool should be abler to help. They can tell you what the actual violation the tool is picking up. Then you can fix that. If you still have a question on MISRA implementation then ask again.
<t>This post is made in a personal capacity<br/>
Member of MISRA-C-WG since 2002</t>
Posts: 27
Threads: 5
Joined: Sep 2004
Reputation:
0
delete miss post
<t>This post is made in a personal capacity<br/>
Member of MISRA-C-WG since 2002</t>
Posts: 117
Threads: 25
Joined: Apr 2016
Reputation:
0
Looks like there might be a global variable named key somewhere.
The message should disappear if you rename either of them.
<t></t>
Posts: 632
Threads: 18
Joined: Jan 2006
Reputation:
1
The MISRA C working group can not make comments about particular tools, but the post by dg1980 would appear relevent.
Posted by and on behalf of the MISRA C Working Group