Note #946, ALLOC.C: Relational or subtract operator applied to pointers [MISRA-C:2004 17.2 REQ + 17.3 REQ]

The message is reported for several pointer operations within the implementation of the memory management standard library functions. These operations are necessary.

If the two pointers involved in a pointer comparison/subtraction do not point into the same array object, the HC(S)08 compiler performs an address comparison/subtraction (comparing/subtracting the addresses that are pointed to by the two operands).