Home
last modified time | relevance | path

Searched hist:"277 d7dd6c192f350bc80ccbb65c36562e59f8e07" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/lib/libc/
H A Dmemmove.c277d7dd6c192f350bc80ccbb65c36562e59f8e07 Mon Apr 22 08:55:43 UTC 2024 Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com> fix(libc): explicitly check operators precedence

This corrects the MISRA violation C2012-12.1:
The precedence of operators within expressions should be
made explicit.
Enclosed the subexpression in parentheses to maintain
the precedence.

In spite of generic guidance for 3rd party libraries
(https://trustedfirmware-a.readthedocs.io/en/latest/process/coding-style.html#misra-compliance)
libc contains some MISRA-C fixes done by commit d5ccb754af86
("libc: Fix some MISRA defects") in 2021.
Also from history it is not clear where libc is
coming from that's why there is no way to fix
violation in base library.

Change-Id: Ic985b418ecae6f61a0be10114deb6076caaa6e5f
Signed-off-by: Nithin G <nithing@amd.com>
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>