25-07-2010, 02:58 PM
Suppose `a' is a parameter. Does `sizeof(a)' count as a use of `a' for the purpose of compliance to 0-1-11 and 0-1-12?
<t></t>
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
Notion of unused parameter in 0-1-11 and 0-1-12
|
25-07-2010, 02:58 PM
Suppose `a' is a parameter. Does `sizeof(a)' count as a use of `a' for the purpose of compliance to 0-1-11 and 0-1-12?
<t></t>
05-10-2015, 01:23 PM
'a' is used – see the definition of “used†in the Glossary of MISRA C++:2008:
Quote:An object is used if it is: In this case, 'a' is used as an operand in an expression.
Posted by and on behalf of
the MISRA C++ Working Group |
« Next Oldest | Next Newest »
|