27-09-2024, 12:51 PM
Strictly this does not violate 0.1.9, because the statement that declares f cannot be removed and still leave working code, but it may be seen as zero initialising followed by assignment (i.e. the zero initialisation is redundant) which violates 0.1.6.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group