19-09-2025, 12:12 PM
11.6.1 is only advisory for precisely this reason, there are cases when it its not possible to initialise to a 'sensible' state.
Note that this rule only cares about variables being initialised, it doesn't care if the value is overwritten before being read, though another rule may fire on that.
Note that this rule only cares about variables being initialised, it doesn't care if the value is overwritten before being read, though another rule may fire on that.
Posted by and on behalf of
the MISRA C++ Working Group
the MISRA C++ Working Group

