diff --git a/docs/misra/deviations.rst b/docs/misra/deviations.rst index 2119066531..3271317206 100644 --- a/docs/misra/deviations.rst +++ b/docs/misra/deviations.rst @@ -95,7 +95,8 @@ Deviations related to MISRA C:2012 Rules: the absence of reports that do not have an impact on safety, despite being true positives. Xen expects developers to ensure code remains safe and reliable in builds, - even when debug-only assertions like `ASSERT_UNREACHABLE() are removed. + even when debug-only assertions like `ASSERT_UNREACHABLE()` are removed. + - ECLAIR has been configured to ignore those statements. * - R2.2 - Proving compliance with respect to Rule 2.2 is generally impossible: diff --git a/docs/misra/rules.rst b/docs/misra/rules.rst index a2e4e9f4ff..4388010ec9 100644 --- a/docs/misra/rules.rst +++ b/docs/misra/rules.rst @@ -124,7 +124,7 @@ maintainers if you want to suggest a change. they are used to generate definitions for asm modules - Declarations without initializer are safe, as they are not executed - - Functions that are no-return due to calls to the `ASSERT_UNREACHABLE()' + - Functions that are no-return due to calls to the `ASSERT_UNREACHABLE()` macro in debug build configurations are not considered violations:: static inline bool